SuperdindaDocs
Feedback

StepBadge

The step number or its outcome in a disc (Figma "Step Badge" 173:186): todo and active show the number, done a check, waiting an hourglass, failed an x and declined a bar.

Use it in steppers and step lists, next to a label that says the state in words.

<StepBadge state="active" number={2} />

Playground

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

Step Badge

number

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

TodoActiveDoneWaitingFailedDeclined

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
"active" | "declined" | "done" | "failed" | "todo" | "waiting" | null"todo"
string | number—The step number, shown while the step is todo or active.
string—Names the state for assistive tech ("Passo 2, feito"). Without it the disc is decorative and the step label says it.
string—

On this page