Badge
Add a compact status, category, or metadata label to MDX content.
Loading documentation…
Badge is a small inline label for communicating status, type, or category.
Use it next to a heading, a version number, or a short piece of metadata where a
full callout would add too much visual weight.
Use the default style for the primary label, secondary for neutral metadata,
and destructive for an error or breaking-change status. outline, ghost,
and link work well when the badge should recede into surrounding prose.
Keep badge text short and make meaning clear in the surrounding sentence. A badge adds emphasis; it should not be the only way readers learn about an important state.
Combine short labels to make a lightweight release summary. The surrounding text still explains the state, while the badges make it easy to scan.
Selects the visual treatment. It defaults to default.
The compact label displayed inside the badge.
Extra classes applied to the rendered badge.