Drawer

A panel that slides in from the edge of the screen. Swipe to dismiss on touch devices.

components/ui/drawer.tsx

Installation

npx betterone-ds add drawer

Props

ComponentPropTypeDefault

Accessibility

  • Focus is trapped inside while open. Esc closes it.
  • Always include a visible Close or Cancel control, not only the swipe gesture.