react-draw-componnet

1.2.5 • Public • Published

react-draw-componnet

A draw component for react.

install:

npm i react-draw-componnet

Usage

...
import Draw from 'react-draw-componnet';
...
render() {
  return (
    <Draw
        open={this.state.drawer}
        handler_close={() => this.setState({ drawer: !this.state.drawer})}
        backdrop_close
        right
    >
      Drawer  Content
    </Draw>
  );
}

API Reference

  • Properties:
    • open - boolean representing the status.
      • Optional
      • Type: boolean
      • Example: "true", "false"
    • handler_close - close callback function.
      • Optional
      • Type: function

Readme

Keywords

Package Sidebar

Install

npm i react-draw-componnet

Weekly Downloads

15

Version

1.2.5

License

ISC

Unpacked Size

109 kB

Total Files

12

Last publish

Collaborators

  • ha1lon9