@real-system/box
v0.0.39
Published
A flexible div for building layouts in Real System.
Downloads
54
Readme
Installation
Installation
# install peer dependencies
# npm
$ npm install --save @real-system/styled-library react react-dom
# yarn
$ yarn add @real-system/styled-library react react-dom
# install box
# npm
$ npm install --save @real-system/box
# yarn
$ yarn add @real-system/box
Code Example
import { RealSystemProvider } from '@real-system/styled-library';
import { Box } from '@real-system/box';
const MyComponent = () => {
return (
<RealSystemProvider>
<Box as="aside" bgColor="white" display="flex" flexDirection="column">
<Box display="flex">...</Box>
</Box>
</RealSystemProvider>
);
};