0.1.0 • Published 1 year ago

@urban-ui/box v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@urban-ui/box

layout | box

npm minzip size License

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.