Button DaisyUI
Clickable actions using DaisyUI's semantic btn class system.
Variants
Status colours
Sizes
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| Variant | ButtonVariant | "" | btn-primary, btn-secondary, btn-accent, btn-ghost, btn-link, btn-outline, btn-neutral, btn-error, btn-warning, btn-success, btn-info |
| Size | ButtonSize | "" | btn-xs, btn-sm, (default md), btn-lg, btn-xl |
| Disabled | bool | false | Disables the button |
| Wide | bool | false | Adds btn-wide for full-width style |
| Class | string | "" | Extra Tailwind or DaisyUI classes |
| Attrs | templ.Attributes | nil | Spread any HTML attribute (hx-*, data-*, etc.) |