Skip to content

Badge

Displays a badge or a component that looks like a badge.

Examples

Default

Badge
vue
<Badge>Badge</Badge>

Secondary

Secondary
vue
<Badge variant="secondary">Secondary</Badge>

Destructive

Destructive
vue
<Badge variant="destructive">Destructive</Badge>

Outline

Outline
vue
<Badge variant="outline">Outline</Badge>

Props

Badge

PropTypeDefaultDescription
variantdefault | secondary | destructive | outlinedefaultThe visual style of the badge.

Slots

Badge

SlotDescription
defaultThe content of the badge.