@crpt/react-sidebar

react-sidebar React component

Stats

StarsIssuesVersionUpdatedCreatedSize
@crpt/react-sidebar
001.0.92 years ago3 years agoMinified + gzip package size for @crpt/react-sidebar in KB

Readme

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} .../>

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.