@vtex-components/box

VTEX box component

Usage no npm install needed!

<script type="module">
  import vtexComponentsBox from 'https://cdn.skypack.dev/@vtex-components/box';
</script>

README

@vtex-components/box

💡 Box is the most abstract component. You can use it as a Layout primitive. Renders a div by default.

NPM JavaScript Style Guide

Install

yarn add @vtex-components/box

Reakit and ThemeUI are peer dependencies, so you must add them with:

yarn add reakit theme-ui 

Usage

import React from 'react'
import Box from '@vtex-component/box'

function Example() {
  return <Box>Box content</Box>
}

License

MIT © vtex