Badge
Small label for status, category, or count. Purely presentational — it has no
default ARIA role, since forcing role="status" on every badge would mislabel
static labels (e.g. “Beta”) as live regions and cause screen readers to announce
them as if they update. If a specific badge does represent a live status (e.g.
an unread count), add role="status" on the instance yourself.
Example
Section titled “Example”<and-badge variant="default">Default</and-badge><and-badge variant="secondary">Secondary</and-badge><and-badge variant="destructive">Destructive</and-badge><and-badge variant="outline">Outline</and-badge>Properties
Section titled “Properties”| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
customClass | class | Additional CSS classes from the consumer. | string | '' |
variant | variant | Visual variant of the badge. | "default" | "destructive" | "outline" | "secondary" | 'default' |