/Drawer

Minimal Drawer React Component

Primary LanguageHTML

Drawer

Minimal Drawer React Component

npm bundle size npm bundle size npm download

Install

npm i @j4jinxx/drawer

Import

import Drawer from '@j4jinxx/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