Box
Box is a layout primitive which can serve as a wrapper component providing most of the CSS utilities.
Examples
Box props
Name | Type | Default | Description |
---|---|---|---|
$as | string | Component to replace the default div container | |
children | react node | Visible label. | |
className | string | Utility class names to be provided to Box | |
overrides | custom | Lets you customize all aspects of the component. |
You can check the implementation of the component for more details.
Box exports
You can import this module like so:
import {Box} from 'spaceweb/box'
It exports the following components or utility functions:
- Box