react-sidebar React component
npm install @crpt/react-sidebar[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]
[![Coveralls][coveralls-badge]][coveralls]
It can display sidebar with children as content.
``javascript
import Sidebar from "@crpt/react-sidebar";
...
onSidebarClose() {
this.setState({ sidebarActive: false });
}
...
...
``
| PropName | Description | Example |
|---|---|---|
| theme: object | Theme object |
| active: Boolean | Sidebar activity. Is Required. |
| onClose: Function | Callback for change container state if blocker clicked. Is Required. |
[build-badge]: https://img.shields.io/travis/user/repo/master.png?style=flat-square
[build]: https://travis-ci.org/user/repo
[npm-badge]: https://img.shields.io/npm/v/npm-package.png?style=flat-square
[npm]: https://www.npmjs.org/package/npm-package
[coveralls-badge]: https://img.shields.io/coveralls/user/repo/master.png?style=flat-square
[coveralls]: https://coveralls.io/github/user/repo