SuperdindaDocs
Inputs

ChoiceCard

A big tappable answer (Figma "Choice Card" 2056:55357, replaces Kind Option): title, optional body and badge, and an indicator.

Selected is an ink border on lilac plus the checked control or a check icon, so it is never colour alone. Must sit inside ChoiceGroup.Root.

<ChoiceGroup.Card value="pix" indicator="radio" body="Débito todo mês, sem cartão">Pix Automático</ChoiceGroup.Card>

Playground

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

Choice Card

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

Indicator · Radio

DefaultHoverFocusSelectedDisabledError

Indicator · Checkbox

DefaultHoverFocusSelectedDisabledError

Indicator · Icon

DefaultHoverFocusSelectedDisabledError

Props

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

ChoiceGroupProps

PropTipoPadrãoDescrição
"multiple" | "single"—One answer (radio semantics: arrows move and select). Several answers (checkbox semantics).
string | string[]—
string | string[]—
((value: string) => void) | ((value: string[]) => void)—

ChoiceCardProps

PropTipoPadrãoDescrição
string—The answer this card stands for.
ReactNode—The title (Figma "title").
ReactNode—The line under the title (Figma "body").
ReactNode—A short tag at the end, e.g. "Recomendado" (Figma "badge").
"checkbox" | "icon" | "radio"—Figma "Indicator": a radio or checkbox drawn at the start, or an icon tile with a check when selected. Defaults to the group's type.
ReactNode—The glyph of the Icon indicator (a lucide element).
booleanfalse
string—

On this page