Skip to content

Badges & Status Indicators

Badges are compact visual indicators used to highlight document status, feature availability, version requirements, or categorical metadata inline without cluttering your prose.


Call attention to feature statuses or version numbers using inline badges:

  1. Import Badge: Include import { Badge } from '@astrojs/starlight/components'; in your frontmatter.
  2. Define Parameters: Set the text, variant (e.g., tip, note, danger), and size.
  3. Embed Inline: Drop the component directly into sentences or headings.

How badges render visually on the live site.

  • Standard: v1.0.0
  • Production State: Stable
  • Best Practice: Recommended
  • Deprecation Warning: Legacy
  • Breaking Notice: Critical