Drawer
Slides supplementary content in from an edge of the viewport. Use it for focused mobile tasks or secondary panels that should preserve page context.
React
Figma
Import
import { Drawer, DrawerPortal, DrawerOverlay, DrawerSwipeHandle, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription } from "@kela-systems/ui-components";This page has no live example yet. Storybook shows Drawer in every state and theme.
Props
Drawer
| Name | Default | Description |
|---|---|---|
showSwipeHandleboolean | false |
It also takes the props of Base UI's drawer.
DrawerPortal
No props of its own. It also takes the props of Base UI's drawer.
DrawerOverlay
No props of its own. It also takes the props of Base UI's drawer.
DrawerSwipeHandle
No props of its own. It also takes the attributes of the HTML element it renders.
DrawerTrigger
No props of its own. It also takes the props of Base UI's drawer.
DrawerClose
No props of its own. It also takes the props of Base UI's drawer.
DrawerContent
No props of its own. It also takes the props of Base UI's drawer.
DrawerHeader
No props of its own. It also takes the attributes of the HTML element it renders.
DrawerFooter
No props of its own. It also takes the attributes of the HTML element it renders.
DrawerTitle
No props of its own. It also takes the props of Base UI's drawer.
DrawerDescription
No props of its own. It also takes the props of Base UI's drawer.
Related
Weigh Drawer against these before you choose.