Badge

Use badges for compact status labels, version markers, and small inline metadata in Plandalf docs.

Badges are small labels. Use them when a reader needs a quick status cue, not a full warning or callout.

Basic example

Stable API Preview Deprecated
<Badge text="Stable" color="green" icon="check" />
<Badge text="API" color="blue" icon="braces" />
<Badge text="Preview" color="yellow" icon="timer" />
<Badge text="Deprecated" color="red" icon="warning" />

Colors

Badges support the same color set used by Mintlify-style MDX. Use color as meaning, not decoration.

Gray Blue Green Yellow Orange Red Purple White Surface White destructive Surface destructive
<Badge color="gray">Gray</Badge>
<Badge color="blue">Blue</Badge>
<Badge color="green">Green</Badge>
<Badge color="yellow">Yellow</Badge>
<Badge color="orange">Orange</Badge>
<Badge color="red">Red</Badge>
<Badge color="purple">Purple</Badge>
<Badge color="white">White</Badge>
<Badge color="surface">Surface</Badge>
<Badge color="white-destructive">White destructive</Badge>
<Badge color="surface-destructive">Surface destructive</Badge>

Sizes and shapes

Use small badges in prose and reference rows. Use larger badges only when the badge is a standalone metadata item.

XS SM MD LG Rounded Pill
<Badge size="xs">XS</Badge>
<Badge size="sm">SM</Badge>
<Badge size="md">MD</Badge>
<Badge size="lg">LG</Badge>
<Badge shape="rounded" color="blue">Rounded</Badge>
<Badge shape="pill" color="blue">Pill</Badge>

Icons, stroke, and disabled

Icons add context when the badge labels status. Stroke badges are quieter. Disabled badges mark unavailable or inactive states without removing the label.

Verified Pending Blocked Outlined Locked
<Badge icon="circle-check" color="green">Verified</Badge>
<Badge icon="clock" color="orange">Pending</Badge>
<Badge icon="ban" color="red">Blocked</Badge>
<Badge stroke color="blue">Outlined</Badge>
<Badge disabled icon="lock" color="gray">Locked</Badge>

Inline usage

Badges can appear inside prose when the status is part of the sentence: this endpoint returns JSON , while this feature requires Premium .

This endpoint returns <Badge color="blue" size="sm">JSON</Badge>.
This feature requires <Badge color="orange" size="sm">Premium</Badge>.

Combined properties

Combine props when a label needs more visual precision, but keep the badge short.

Premium Verified Beta Self closing label
<Badge icon="star" color="blue" size="lg" shape="pill">Premium</Badge>
<Badge icon="check" iconType="solid" stroke color="green" size="sm">Verified</Badge>
<Badge icon="badge-alert" color="orange" shape="rounded">Beta</Badge>
<Badge label="Self closing label" color="blue" size="sm" />

Common patterns

Use badges beside headings, field names, or short metadata. Keep the label to one or two words so the badge reads as a cue, not a sentence.

Status metadata

Use color and icon together when a status matters during implementation.

Required Optional Beta

Version labels

Use stroke badges for quieter compatibility labels inside reference pages.

v1 SDK Agent safe
<Badge text="Required" color="red" icon="warning" size="sm" />
<Badge text="Beta" color="purple" icon="sparkles" size="sm" />
<Badge text="SDK" color="green" stroke size="sm" />

With tooltip

Use tooltip when the badge names a short concept that needs a definition, such as an availability state or a release channel.

Agent safe Planned
<Badge
  text="Agent safe"
  color="green"
  icon="shield"
  tooltip="This example can be copied by an agent without private dashboard context."
/>

When to use

Badge usage

Use a badge forstatus, metadata, compact labels

Version markers, API availability, required or optional labels, release states, and small inline qualifiers.

Use a callout forimportant prose

Anything that needs a sentence, a warning, a consequence, or a link to another page.

Use a banner forpage-wide context

Notices that apply to the whole page, such as migration status or an SDK-wide constraint.

Properties

colorstringdefault: gray

Badge color variant.

Options: gray, blue, green, yellow, orange, red, purple, white, surface, white-destructive, surface-destructive.

sizestringdefault: md

Badge size.

Options: xs, sm, md, lg.

shapestringdefault: rounded

Badge shape.

Options: rounded, pill.

iconstring

The icon to display. Use a shared docs icon name, a supported icon-library name, a URL, or an imported SVG value.

iconTypestring

Icon style for icon libraries that support style variants.

Options: regular, solid, light, thin, sharp-solid, duotone, brands.

strokebooleandefault: false

Display the badge with an outline instead of a filled background.

disabledbooleandefault: false

Display the badge in a disabled state with reduced opacity.

classNamestring

Additional CSS classes to apply to the badge.

Plandalf extensions

text | labelstring

Visible badge label for self-closing badge usage. Children are still the most portable Mintlify-style label.

tooltipstring

Adds a hover and focus tooltip for short definitions.

Feature detail