SuperdindaDocs
Feedback

Badge

A short status word in a pill (Figma "Badge" 168:113).

Use it for a state that sits next to a name or a row: "Consentido", "Pausada", "Teste". It is not interactive and never the only place the state is said.

<Badge tone="ok" icon={<CircleCheck />}>Consentido</Badge>

Playground

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

Badge

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

Tone · Brand

SizeBadge
DefaultConsentido
MicroConsentido
LargeConsentido

Tone · Warm

SizeBadge
DefaultConsentido
MicroConsentido
LargeConsentido

Tone · Destructive

SizeBadge
DefaultConsentido
MicroConsentido
LargeConsentido

Tone · Muted

SizeBadge
DefaultConsentido
MicroConsentido
LargeConsentido

Tone · Soft

SizeBadge
DefaultConsentido
MicroConsentido
LargeConsentido

Tone · Ok

SizeBadge
DefaultConsentido
MicroConsentido
LargeConsentido

Tone · Attention

SizeBadge
DefaultConsentido
MicroConsentido
LargeConsentido

Tone · Info

SizeBadge
DefaultConsentido
MicroConsentido
LargeConsentido

Tone · Danger

SizeBadge
DefaultConsentido
MicroConsentido
LargeConsentido

Tone · Neutral

SizeBadge
DefaultConsentido
MicroConsentido
LargeConsentido

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
"attention" | "brand" | "danger" | "destructive" | "info" | "muted" | "neutral" | "ok" | "soft" | "warm" | null"neutral"
"default" | "large" | "micro" | null"default"
ReactNode—The Figma "Icon" + "Icon glyph" pair: a lucide element before the label. Its colour follows the tone; size follows the badge size.
ReactElement<unknown, string | React.JSXElementConstructor<any>>—Another element keeps the look (`<li />`, `<a />`).
string—
ReactNode—

On this page