1.0.9 • Published 7 years ago
@crpt/react-sidebar v1.0.9
react-sidebar
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} .../> |


