react-clean-drawer
v1.0.12
Published
react drawer component
Downloads
7
Readme
react-clean-drawer
Simple and clean Drawer Component for React.js NPM
Installing
npm install --save react-clean-drawer
Usage
// 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;
Development
git clone https://github.com/Aniket965/react-clean-drawer.git
cd react-clean-drawer
Install Dependices
yarn
Build
yarn build
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning.
Authors
- aniket965 - Initial work - aniket965
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details