ortaui
  1. Components
  2. Overlays

Drawer

Swipe-to-dismiss panel on Base UI Drawer (no vaul). Drag it toward its edge to close.

Installation#

npx shadcn add @ortaui/drawer

Examples#

Directions#

API reference#

PropTypeDefaultDescription
open / defaultOpenboolean-Controlled or uncontrolled state.
onOpenChange(open: boolean) => void-Called when the open state changes.
direction"bottom" | "top" | "left" | "right""bottom"Drawer: the edge it slides from; sets the swipe direction.
handleboolean-DrawerContent: grab handle. Defaults to on for bottom.
classNamestring-Merged with the component classes via cn().