@urban-ui/box
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@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.

Package Sidebar

Install

npm i @urban-ui/box

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

10.7 kB

Total Files

8

Last publish

Collaborators

  • mattstyles