React Box
To install, you can use npm or yarn:
$ npm install --save @symbo.ls/react-box
$ yarn add @symbo.ls/react-box
Box element which can be used with
import { Box } from '@symbo.ls/react'
// example 1
const buttonProps = {
theme: 'primary',
size: 'A',
padding: 'B Z'
}
const Button2 = () => <Box tag="button" ...buttonProps />
// example 2
const buttonConf = {
tag: 'button',
props: {
theme: 'primary',
size: 'A',
padding: 'B Z'
}
}
const Button3 = () => <Box ...buttonConf />