SuperdindaDocs
Consent & billing

PreCheckChoice

The pre-check card before the connection queue (Figma "Pre-check Choice" 2056:61941): a question, three answers and a primary that says what each answer does next.

The answers are Choice Cards with Indicator=Icon (inputs family): one radio group named by the question, arrow keys move the selection.

<PreCheckChoice question="Você vai precisar do celular da Lia por uns 3 minutos. Ele está com você?" options={options} primaryLabels={{ together: "Entrar na fila", "own-phone": "Mandar o link pra Lia", later: "Me lembrar amanhã" }} onSubmit={go} />

Playground

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

Pre-check Choice

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

Selection · Together

Pre-check Choice
Você vai precisar do celular da Lia por uns 3 minutos. Ele está com você?

Conectamos poucas pessoas por vez, pro WhatsApp não bloquear ninguém.

Selection · Own phone

Pre-check Choice
Você vai precisar do celular da Lia por uns 3 minutos. Ele está com você?

Conectamos poucas pessoas por vez, pro WhatsApp não bloquear ninguém.

Selection · Later

Pre-check Choice
Você vai precisar do celular da Lia por uns 3 minutos. Ele está com você?

Conectamos poucas pessoas por vez, pro WhatsApp não bloquear ninguém.

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—Figma `question`: the legend ("Você vai precisar do celular da Lia…").
PreCheckOption[]—The three answers, in order.
Record<"later" | "own-phone" | "together", string>—The primary label per selection: it names what happens next ("Entrar na fila", "Mandar o link pra Lia", "Me lembrar amanhã").
string—Figma `footnote`: why the queue exists, without numbers.
"later" | "own-phone" | "together"—Controlled selection (Figma "Selection").
"later" | "own-phone" | "together""together"Uncontrolled initial selection.
((value: PreCheckSelection) => void)—
((value: PreCheckSelection) => void)—Pressing the primary with the current selection.
booleanfalseBusy while the next step loads (the primary shows its spinner).
string—

On this page