Box
Box is the most abstract component on top of which most other Arc UI components are built. By default, it renders a div element.
The Box component is useful because it helps with some common use cases:
- Provide a shorthand way to pass styles via props (
bginstead ofbackgroundColor). See styled-system for all properties and shorthands. - Compose new component and allow for override using the
asprop. - Sets some safe defaults for elements, namely setting
box-sizing: border-box.
Import
import { Box } from '@wpmedia/arc-ui-layout'Usage
Copy