Select
A styled native <select> with a built-in chevron and validation-aware states. Pass label / description (or help) to compose field helpers automatically.
Usage
Placeholder
With field helpers
Prefer the prop API for typical forms. Compose manually when you need custom layout:
This helps personalize the docs experience.
Invalid state
Props
| Prop | Type | Default | Description |
|---|---|---|---|
name |
string |
— | Input name (also via HTML attribute) |
errorKey |
string |
— | Override validation key for error wiring |
rounded |
none, sm, md, lg, xl, full |
md |
Border radius |
placeholder |
string |
null |
Disabled placeholder option shown when no value is selected |
label |
string |
— | Compose a field-label automatically |
description |
string |
— | Compose a field-description automatically |
help |
string |
— | Alias for description (2.x compatibility) |
errorMessage |
string |
— | Compose a field-error with this message |
All <option> elements are passed through the slot, and standard HTML attributes like disabled, required, and wire:model are supported.