@urban-ui/box
v0.1.0
Published
Generic container componet for block elements
Downloads
15
Maintainers
Readme
@urban-ui/box
layout | box
Generic container componet for block elements
## Getting started
pnpm add -S @urban-ui/box
import {Box} from '@urban-ui/box'
export function MyComponent() {
return (
<Box css={{size: '$xl', backgroundColor: '$primary10'}}>
<h1>Some content</h1>
</Box>
)
}
Details
Box is a catch-all component that gives you access to the css
prop for use when you need some customisations for a component and want access to the theme specification.