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

0.1.2 • Public • Published

@sure-thing/box

Boxes all the way down.

Install

npm i @sure-thing/box --save

Usage

import { BoxTop, Box } from '@sure-thing/box'

const theme = {
  color: {
    b: 'blue'
  }
}

const H1 = Box
H1.defaultProps = { as: 'h1' }
;<BoxTop theme={theme}>
  <Box as='ul' f aic>
    <Box as='li' w={[1, 1 / 2]}>
      <H1 c='b'>Hello world!</H1>
    </Box>
    <Box as='li' w={[1, 1 / 2]}>
      <Box as='button' c='b' css={theme => `&:hover { color: tomato; }`}>
        Click Me
      </Box>
    </Box>
  </Box>
</BoxTop>

License

MIT License © sure thing

Readme

Keywords

none

Package Sidebar

Install

npm i @sure-thing/box

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

16.8 kB

Total Files

14

Last publish

Collaborators

  • estrattonbailey
  • nickbytes