Directional Drawer

A Responsive multi Directional/Sliding Drawer component for React with Vaul. Functions as a collapsible navigation drawer on mobile and a persistent sidebar on desktop.

Componendt not found

Installation

npx uilayouts@latest add directional-drawer

Props

PropTypeDescription
openbooleanThe content to be displayed within the AuroraBackground component.
setOpenbooleanthis is an function to close and open the drawer
drawerBtnfunctionthis is an function for default button, when you don't to use state then you can use drawerBtn

Example

Top Sidebar

Bottom Sidebar