Badge DaisyUI
Inline labels and status indicators using DaisyUI's badge class.
Variants
Primary Secondary Accent Neutral Outline Ghost
Status colours
Success Warning Error Info
Sizes
XS SM MD LG XL
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| Variant | BadgeVariant | "" | badge-primary, badge-secondary, badge-accent, badge-neutral, badge-ghost, badge-outline, badge-error, badge-warning, badge-success, badge-info |
| Size | BadgeSize | "" | badge-xs, badge-sm, (default md), badge-lg, badge-xl |
| Class | string | "" | Extra classes |
| Attrs | templ.Attributes | nil | Spread any HTML attribute |