PrimitivesSelect & inputSelect
Select
Pick one value from a known list. An accessible listbox with arrow-key navigation and a selected checkmark; the caller owns form controls and consequences through its change event. The trigger reuses the field-input chrome, so selects sit identically beside text fields.
Enum
Data-driven options
Secondary text
Searchable
Nationality
Nothing matches “”
Try the country on your passport, like Ireland, or the nationality, like Irish.
Times
Dependent content
Repeated in a list
Inline
Hi , your quote is ready.
API
for
Model expression for label, validation and enum-option presentation metadatavalue / value-expression
Initial value or caller-owned Alpine expression read by the listboxkoala-select-change
Bubbling event with detail.value and detail.label; caller owns posting and consequencesoptions
IReadOnlyList<KoalaSelectOption>? (required unless for= names an enum)label
string?hide-label / aria-label
Accessible label-free row controlsplaceholder
string (default Select…)optional
booldisabled
boolinvalid / invalid-when
bool or Alpine expression: red border and aria-invalid; a ModelState error on for= does the samedisabled-when
Alpine expressiontrigger-id-expression
Alpine expression for the trigger's id inside an x-for, so each copy has its own; bind the label's for= the same waysize
XsMdinline
bool: compact, content-width and baseline-alignedsearchable
bool: a search box over the list, matching labels and each option's Keywords; a bottom sheet on phonessearch-placeholder
string (default Search)no-match-hint
string?: the line under "Nothing matches"KoalaSelectOption.FlagSrc
string?: a 4:3 flag before the label, in the list and the field