SuperdindaDocs
Overlays

Drawer

Playground

Um preset por valor do primeiro eixo do Figma. Mude as props; dsState força hover, foco ou pressionado, como na matriz.

Drawer

Variantes, tamanhos e estados

Cada célula é o componente real, marcada com a variante do Figma que reproduz (passe o mouse pra ver o node).

Size · sm

Drawer

Size · md

Drawer

Size · lg

Drawer

Props

As props que o arquivo do DS declara. O componente também repassa as do primitivo (base-ui), quando ele tem um.

DrawerContentProps

PropTipoPadrãoDescrição
"lg" | "md" | "sm" | null"md"
ScrimTone"soft"
string—
React.CSSProperties | ((state: DrawerPopupState) => React.CSSProperties | undefined)—Style applied to the element, or a function that returns a style object based on the component's state.
ReactNode—

DrawerPreviewProps

PropTipoPadrãoDescrição
"lg" | "md" | "sm" | null"md"
string—
ReactNode—

DrawerHeaderProps

PropTipoPadrãoDescrição
ReactNode—Small caps line above the title (Figma "eyebrow", e.g. "CLIENTE").
ReactNode—One line under the title (Figma "meta"): e-mail, since when, how many.
ReactNode—The Figma "showAvatar" slot: a DS Avatar (Brand 40) before the text.
ReactNode—The Figma "Actions" slot: buttons next to the close button. At size sm they move to the footer so the title keeps its room.
string—Accessible name of the close button (pt-BR, e.g. "Fechar").
string—
ReactNode—The title (Figma "title", e.g. the client's name).

DrawerFooterProps

PropTipoPadrãoDescrição
ReactNode—The Figma "showHelper" text, e.g. "Fica registrado na auditoria com seu nome."
string—
ReactNode—

On this page