DEVELOPMENT PREVIEWIn development

drawer API

overlays/drawer.tsx

Drawer

Props

PropTypeDefaultDescription
children*
React.ReactNode—
open*
boolean—
side
DrawerSide | undefinedrightEdge to slide in from.
size
DrawerSize | undefinedmdPanel size preset.
description
any—Secondary line under the title, wired to `aria-describedby`.
showCloseButton
boolean | undefinedtrueShow an ✕ button in the header.
hotkeys
{} | undefined[]Additional hotkeys active while the drawer is open.
Show native HTML props

Native HTML Props

PropTypeDefaultDescription
onOpenChange*
(open: boolean) => void—Called with `false` when the drawer requests to close (Escape, backdrop, ✕ button).
title
any—Header heading; labels the dialog for assistive tech.
aria-label
string | undefined—Accessible name when no `title` is rendered.
className
string | undefined—