react-draw-componnet
v1.2.5
Published
A draw component for react.
Downloads
26
Readme
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