Drawer Composition

A modal edge panel for page navigation or a longer contextual task. It is a separate interaction contract from Modal and Popover even though Base UI supplies the same proven focus and dismissal foundation.

Usage

tsx
<Drawer open={open} onOpenChange={setOpen} title="Pages">  <nav>...</nav></Drawer>

Props

PropTypeDefaultNotes
open / defaultOpenbooleanControlled or uncontrolled open state.
onOpenChange(open: boolean) => voidFires for backdrop, Escape, close control, and controlled changes.
titleReactNodeRequired accessible name.
descriptionReactNodeOptional accessible description.
footerReactNodePersistent actions at the bottom edge.
triggerReactNodeOptional uncontrolled trigger.

Do

Use Drawer for mobile page navigation or a contextual workflow that belongs at the screen edge.

Don't

Add a drawer placement to Modal or use Popover for modal navigation.

Keyboard

Escape closes it. Tab and Shift+Tab stay inside while open. Focus returns to its trigger.