Badge
Small inline labels for status, counts, and categories. Supports semantic color variants and an optional status dot.
Variants
Default Secondary Success Warning Error Info Outline
With Status Dot
Online Offline Degraded
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| Variant | Variant | VariantDefault | Color scheme: default, secondary, success, warning, destructive, info, outline |
| Dot | bool | false | Shows a colored status dot before the label text |
| Class | string | "" | Extra Tailwind classes |
| Attrs | templ.Attributes | nil | Spread any HTML attribute |