Input
Input is a universal component for all DaisyUI input field types. It can be used for single-line text, password, email, number, date, time, and more. The component supports direct rendering as an input or, when using its slot, acts as a form control that exposes value, setter, and v-model composable for advanced usage.
- Supports many DaisyUI input types via the
typeprop. - Use the
validatorprop to enable validation styling. - Use the slot for custom rendering, validation, and advanced form control scenarios.
See below for API details and usage examples.
Input pairs with the Label component. See the Label examples.
Basic Usage
A simple input with a placeholder.