SuperdindaDocs
Auth

OpenMailboxAction

The webmail shortcut under "Confira seu e-mail" (Figma "Open Mailbox Action" 183:606): a card-coloured pill with the mail glyph on a brand block, the inbox name and an external-link mark.

It opens the inbox in a new tab, so the sign-in tab stays where it is. Show it only when the domain maps to a known webmail, and only from sm up (className="hidden sm:flex"): a phone has the mail app itself.

<OpenMailboxAction href="https://mail.google.com" target="_blank" rel="noopener">Abrir o Gmail</OpenMailboxAction>

Playground

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

Open Mailbox Action

string
string

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

Props

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

PropTipoPadrãoDescrição
ReactNode—Figma `Label`: "Abrir o Gmail". Name the inbox: a generic "Abrir o e-mail" is the one thing the person cannot act on.
ReactElement<unknown, string | React.JSXElementConstructor<any>>—Another element keeps the look (`<NextLink href="…" />`, `<button />`).
string—

On this page