SuperdindaDocs
Inputs

CheckboxField

A checkbox with its label and optional description, where the whole row is the hit target (Figma "Checkbox Field" 2056:47820): consent attestation, opt-ins, backoffice bulk select.

The row is a <label>; the label text names the checkbox and the description describes it.

<CheckboxField size="touch" required checked={agreed} onCheckedChange={setAgreed} description="Você pode retirar o consentimento quando quiser.">Li e concordo com o termo</CheckboxField>

Playground

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

Checkbox Field

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

Checked · False

SizeDefaultHoverFocusDisabledError
md
touch

Checked · True

SizeDefaultHoverFocusDisabledError
md
touch

Checked · Indeterminate

SizeDefaultHoverFocusDisabledError
md
touch

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—The label (Figma "label").
ReactNode—Second line in muted text (Figma "description").
"md" | "touch""touch"md = 40 px row (desktop, backoffice), touch = 48 px (phone).
boolean—Whether the component should ignore user interaction.
string—

On this page