Current section: Styling 59 exercises
Problem

Size Prop

Loading exercise

Transcript

00:00 All right, in this step, we want to take things a little further and make an even better user experience when using our box. So, rather than having the class name be supplied, and so now they need to know, oh, they have these class names, box-small, box-medium, whatever. Instead,

00:17 it would be better if we have a size prop that is typed, and you can have, like here, the specific sizes. That would be really nice. We're going to keep the style and class name composition just so that people can override or combine specific things if they want to,

00:35 but the size prop would be quite nice, a nice developer experience there. So, your job is to add a size prop. Good luck.