A draw component for react.
npm i react-draw-componnet
...
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>
);
}
-
Properties:
-
open
- boolean representing the status.- Optional
-
Type:
boolean
-
Example:
"true", "false"
-
handler_close
- close callback function.- Optional
-
Type:
function
-