Skip to Content

Drawer

Full-height side dialog assembled with Header, Title, Description, Body, Footer and Close. Small/base collapse to viewport minus 16px; flex always fills that width. Provide Title or an explicit aria-label/aria-labelledby.

Использование

Размеры

view

API

ПропТипПо умолчаниюОписание
triggerReactElement<any, string | JSXElementConstructor<any>>—Optional interactive opener; forwards DOM props/ref.
openboolean——
defaultOpenboolean—
onOpenChange(open: boolean) => void——
onOpen() => void——
onClose() => void——
size"small" | "base" | "flex"small480px, 640px, or viewport minus 16px; all shrink to viewport minus 16px.
view"inline" | "floating"inlineVisual shape only; floating rounds the panel.
modalbooleanTrap focus, block background interaction and lock page scrolling.
Last updated on