1.2.5 • Published 6 years ago
react-draw-componnet v1.2.5
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