1.0.0 • Published 3 years ago

@aiui/ai-drawer v1.0.0

Weekly downloads
-
License
GPL
Repository
github
Last release
3 years ago

AiDrawer

Minimal Drawer React Component

npm bundle size npm bundle size npm download

Install

npm i @aiui/ai-drawer

Import

import AiDrawer from '@aiui/ai-drawer';

Props

NameTypeDefaultDescription
openedboolfalseIf true, the drawer is open
anchorstringleftDrawer placement (left, right, top, bottom)
colorstring#ffffffDrawer Color
widthnumber280Drawer Width (for anchor left & right)
onClosefunc( ) => { }Callback fired when the component requests to be closed
childrennodeDrawer children