@crpt/react-sidebar

1.0.9 • Public • Published

react-sidebar

Travis npm package Coveralls

Avatar

It can display sidebar with children as content.

Usage

import Sidebar from "@crpt/react-sidebar";

...
onSidebarClose() {
    this.setState({ sidebarActive: false });
}
...
<Sidebar active={this.state.sidebarActive} onClose={this.onSidebarClose}>content</Sidebar>
...
PropName Description Example
theme: object Theme object
active: Boolean Sidebar activity. Is Required. <Sidebar active={true} .../>
onClose: Function Callback for change container state if blocker clicked. Is Required. <Sidebar onClose={onClose} .../>

Readme

Keywords

Package Sidebar

Install

npm i @crpt/react-sidebar

Weekly Downloads

0

Version

1.0.9

License

MIT

Unpacked Size

56.8 kB

Total Files

27

Last publish

Collaborators

  • ivanvlado
  • solnik
  • fantik217