Input Component
The Input component is a flexible text input that supports various styling options and can be easily customized. It provides a simple way to handle user input with built-in v-model support and customizable styling.
Examples
Basic Usage
Simple input with default styling and placeholder text. The component supports v-model for two-way data binding.
Value:
Default Value
You can provide a default value that will be used when the component is mounted.
Value: This is a default value
With Icon
Input can be combined with icons using InputGroup to create search fields or other icon-enhanced inputs.
Value:
Usage Notes
- The Input component accepts all standard HTML input attributes through prop forwarding
- Styling can be customized using Tailwind classes via the class prop
- Uses v-model for two-way data binding with automatic type handling for string and number values
- Default values can be set using either v-model or the defaultValue prop
- Can be wrapped with InputGroup to create complex input combinations with icons or other elements