Content
Main drawer container with animations. Positioned at bottom by default.
| Prop | Type | Default |
|---|---|---|
| asChild# | booleanRender as child element instead of div | — |
| className# | stringCSS class name | — |
| forceMount# | booleanMount content even when drawer is closed | — |
| onEscapeKeyDown# | (event: KeyboardEvent) => voidCallback when Escape key pressed inside drawer | — |
| onPointerDownOutside# | (event: PointerDownOutsideEvent) => voidCallback when pointer down outside drawer | — |
| onInteractOutside# | (event: PointerDownOutsideEvent | FocusOutsideEvent) => voidCallback when any interaction outside drawer occurs | — |
| onOpenAutoFocus# | (event: Event) => voidCallback to control focus when drawer opens | — |
| onCloseAutoFocus# | (event: Event) => voidCallback to control focus when drawer closes | — |
| ...divProps# | React.ComponentPropsWithoutRef<'div'>All standard HTML div attributes (style, data-*, aria-*, etc.) | — |