Basic Inputs
Sizes
States
This field is required
Icons
Types
Labels & Hints
Helpful hint text
Textarea
This field is required
Color Picker
Select a color for your theme
Please select a color
Documentation
Basic Usage
<x-input label="Name" name="name" placeholder="Your name" />
Props
label- stringtype- string (text, email, password, ...)name- stringid- string|null (defaults to name)value- stringplaceholder- stringsize- sm | lg | nullerror- bool +errorMessagerequired- booldisabled- boolreadonly- boolicon- string|null (FontAwesome)iconPosition- left | right
Sizes
<x-input size="sm" ... />
<x-input ... />
<x-input size="lg" ... />
States
<x-input error errorMessage="Message" />
<x-input disabled />
<x-input readonly />
<x-input required />
Icons
<x-input icon="user" />
<x-input icon="envelope" iconPosition="right" />
Textarea
<x-textarea label="Message" name="msg" placeholder="Your message" />
Textarea Props:
label- stringname- stringid- string|nullvalue- stringplaceholder- stringsize- sm | lg | nullrows- int|nullcols- int|nullerror- bool +errorMessagerequired- booldisabled- boolreadonly- boolhint- string
Color Picker
<x-colorpicker label="Color" name="color" value="#3B82F6" />
Color Picker Props:
label- stringname- stringid- string|nullvalue- string (hex color, default: #000000)placeholder- stringsize- sm | lg | nullshowPresets- bool (default: true)showInput- bool (default: true)presets- array|null (custom preset colors)format- hex | rgb | hsl (default: hex)error- bool +errorMessagerequired- booldisabled- boolreadonly- boolhint- string
Features:
- HSL color picker with hue, saturation, and lightness controls
- 15 preset colors (customizable)
- Hex color format support
- Dark mode support
- Interactive Alpine.js integration