Drawer
A drawer is a panel that slides in from the edge of the screen. This component uses Vaul for it’s implementation.
Vaul DocumentationImport
import { Drawer } from "@aeonkit/react";Usage
Default
The drawer by default opens from the bottom of the screen.
<div> <Button variant="link" onClick={() => setOpen(true)}> Open Drawer </Button> <Drawer open={open} onOpenChange={(open) => setOpen(open)}> <Drawer.Overlay /> <Drawer.Content> <Drawer.Close> <LuX /> </Drawer.Close> <Drawer.Title>Title</Drawer.Title> <Drawer.Description>Description</Drawer.Description> </Drawer.Content> </Drawer></div>Props
API Interface: DrawerProps
API Interface: DrawerCloseProps
API Interface: DrawerContentProps
API Interface: DrawerDescriptionProps
API Interface: DrawerOverlayProps
API Interface: DrawerTitleProps