SuperdindaDocs
Inputs

HelpHint

A small "?" after a label that opens a short explanation of why we ask (Figma "Help Hint" 170:208).

The button is 24 px, with a 44 px hit area for touch. The popover is a base-ui Popover: Esc closes it and focus returns to the button. Never put information here that the person needs to complete the field.

<HelpHint label="Por que pedimos o CPF?" title="Por que o CPF?">Para emitir a nota fiscal da assinatura.</HelpHint>

Playground

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

Help Hint

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

Help Hint ·

Help HintHoverFocus

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
string—Accessible name of the button, e.g. "Por que pedimos o CPF?".
ReactNode—Optional heading inside the popover.
ReactNode—The explanation: one or two short sentences.
boolean—Open state, when the parent controls it.
boolean—
((open: boolean) => void)—
string—

On this page