Input DaisyUI
Text fields using DaisyUI's input and fieldset classes.
Default
Variants
Error state
Sizes
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| Label | string | "" | Label text above the input |
| Type | string | "text" | HTML input type |
| Placeholder | string | "" | Placeholder text |
| Value | string | "" | Initial value |
| Variant | InputVariant | "" | input-primary, input-secondary, input-accent, input-error, input-warning, input-success, input-info |
| Size | InputSize | "" | input-xs, input-sm, (default md), input-lg, input-xl |
| Error | string | "" | Error message — also applies input-error styling |
| Helper | string | "" | Helper text below the input (shown when no error) |
| Required | bool | false | Marks field as required with * indicator |
| Disabled | bool | false | Disables the input |
| Attrs | templ.Attributes | nil | Spread any HTML attribute |