SuperdindaDocs
Navigation

AccountMenu

Playground

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

Account Menu

boolean
boolean

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).

Account Menu ·

Props

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

AccountMenuRootProps

PropTipoPadrãoDescrição
AccountUser—Who is signed in: name, e-mail, initials.
NavViewport—Desktop = attached menu, Phone = bottom drawer. Leave it out to follow the screen (drawer below 56rem, like the App Header).
boolean—Controlled open state.
booleanfalseUncontrolled initial open state.
((open: boolean) => void)—
string"Sua conta"Accessible name of the menu or drawer. Default "Sua conta".
booleanfalseDraws the open panel in place, with no trigger, portal or focus trap: for the /__ds matrix and docs previews only.
ReactNode—

AccountMenuTriggerProps

PropTipoPadrãoDescrição
string—

AccountMenuItemProps

PropTipoPadrãoDescrição
ReactNode—A lucide element (16 px in the menu, 20 px in the drawer).
string—A destination; or `render={<NextLink href="/conta" />}`.
ReactElement<unknown, string | React.JSXElementConstructor<any>>—
((event: MouseEvent<HTMLElement>) => void)—
booleanfalse
string—
ReactNode—

AccountMenuSignOutProps

PropTipoPadrãoDescrição
ReactNode"Sair"Default "Sair"; pass "Saindo…" while it runs.

On this page