1.0.0 • Published 4 years ago
@aiui/ai-drawer v1.0.0
AiDrawer
Minimal Drawer React Component
Install
npm i @aiui/ai-drawerImport
import AiDrawer from '@aiui/ai-drawer';Props
| Name | Type | Default | Description |
|---|---|---|---|
| opened | bool | false | If true, the drawer is open |
| anchor | string | left | Drawer placement (left, right, top, bottom) |
| color | string | #ffffff | Drawer Color |
| width | number | 280 | Drawer Width (for anchor left & right) |
| onClose | func | ( ) => { } | Callback fired when the component requests to be closed |
| children | node | Drawer children |
1.0.0
4 years ago