Drawer
Slide-over sheet supporting right, left, bottom, and top edges — ideal for settings panels, playlists, and mobile navigation.
Interactive Drawer
Slide-over panel supporting right, left, bottom, and top edges with smooth GPU-accelerated transitions.
drawer-example.tsx
Side
Size
Quick Import
Example.tsxtsx
1import { Drawer } from "@rekodo/react";2
3export function Example({ open, onOpenChange }) {4 return (5 <Drawer open={open} onOpenChange={onOpenChange} side="right" title="Deck Settings">6 Slide-over panel content7 </Drawer>8 );9}API Reference
Props accepted by this component.
| Prop | Type | Default | Description |
|---|---|---|---|
| open | boolean | required | Controls drawer visibility. |
| onOpenChange | (open: boolean) => void | required | Called when closed via backdrop, close button, or Escape. |
| side | "right" | "left" | "bottom" | "top" | "right" | Viewport edge from which the drawer slides in. |
| size | "sm" | "default" | "lg" | "full" | "default" | Width (left/right) or max height (top/bottom). |
| title / description / icon | string / ReactNode | undefined | Header strip metadata. |
| footer | ReactNode | undefined | Sticky bottom action bar. |