Simple and clean Drawer Component for React.js NPM
npm install --save react-clean-drawer
// Import css and Drawer Component
import Drawer from 'react-clean-drawer'
import 'react-clean-drawer/lib/react-clean-drawer.css'
Example Usage.
import React, { Component } from 'react'
import Drawer from 'react-clean-drawer'
import 'react-clean-drawer/lib/react-clean-drawer.css'
class App extends Component {
constructor(props) {
super(props);
this.state={open:null}
}
render() {
return (
<div className="App">
<button onClick={()=>this.setState({open:!this.state.open})}>Toggle</button>
<Drawer open={this.state.open} ></Drawer>
</div>
);
}
}
export default App;
git clone https://github.com/Aniket965/react-clean-drawer.git
cd react-clean-drawer
Install Dependices
yarn
Build
yarn build
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning.
- aniket965 - Initial work - aniket965
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details