@symbo.ls/react-box

2.11.221 • Public • Published

react-box

React Box

Table of Contents

Install

To install, you can use npm or yarn:

$ npm install --save @symbo.ls/react-box
$ yarn add  @symbo.ls/react-box

Usage

Box element which can be used with

Examples

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 />

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @symbo.ls/react-box

    Weekly Downloads

    510

    Version

    2.11.221

    License

    MIT

    Unpacked Size

    16.7 kB

    Total Files

    10

    Last publish

    Collaborators

    • julianbraha
    • lberia
    • tokoyoung
    • svinchy
    • nikoloza