Badge
To display small pieces of information, such as a status or category, use the <Badge> component.
Preview
Section titled “Preview”import { Badge } from '@astrojs/starlight/components'
<Badge text="Note" variant="note" />
<Badge text="Success" variant="success" />
<Badge text="Tip" variant="tip" size="small" />
<Badge text="Caution" variant="caution" size="medium" />
<Badge text="Danger" variant="danger" size="large" />
<Badge text="Default" /><Badge> Props
Section titled “<Badge> Props”The <Badge> component accepts the same props in Starlight’s <Badge> component.