Skip to content

Aniket965/react-clean-drawer

Repository files navigation

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

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

About

basic and clean react drawer 🗄

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published