A Box component is one of the most basic layout components. Developers might want to think of it as a div, others can simply consider it a style-able container into which other components may be placed.
Beyond the standard attributes of className and style, Box accepts a tag property which lets users customize the underlying tag, allowing users to work semantically when needed.
|tag||The underlying tag to render for Box, defaults to a |
|className||The className property can be used to add a CSS class to a component that accepts styling. In Clutch, the className property powers the visual styling panel and the class name itself is auto-generated. Additional class names can be passed to the component by twirling open the className control and passing in strings.|
|ref||Box forwards its |
|children||The Children prop allows users to pass other components as a property, enabling users to compose together components.|
Updated 6 months ago