$3
*
ESP*
INGReact Sidebar
React Sidebar is a component ready to work as a side sidebar (in future versions also horizontal)
that includes the possibility of displacement from the right or from the left.
It is still under development, but is fully functional for basic projects.
The opening state of the component must be controlled from outside.
How to Install
``$xslt
npm install @oubli/react-sidebar --save
`
Usage
The use is really simple, just import the library
and include inside the component the elements that you want to show inside.
`javascript
import React from 'react';
import Sidebar from '@oubli/react-sidebar'
const Example = (props) => (
position={'right'}
open={true}
>
)
``
Props
| Name | Default | Description |
| ------------- |:-------------:| ------------:|
| position | 'left' | |
| open | false | |
Tips
It only accepts one react element inside,
so if you want to render more, it must be wrapped in a label.