Skip to content
LyEve UI v0.60.1

Form controls

Autocomplete

A searchable single-value picker. The user types to filter the option list, navigates with Up / Down, and selects with Enter. Click outside or hit Esc to close.

Basic

Without clear button

Searching by more than the label

keywords gives the default matcher more to look at, so an option a user knows by a code or a synonym can be found by typing it. Matching is case- and accent-insensitive, so a query of cafe still finds a label spelled with an acute accent. Type LHR or Narita here.

filter replaces the matcher with one of your own, and filter={false} switches local filtering off entirely for a list that arrived already narrowed by a server query. That is the case where a second local pass would cut the answer the server just gave you.

Under a touch screen

Every option in the open list is 44px tall, as a Dropdown menu item is. A mouse keeps the shorter rows. The cross that clears the field takes a 44px target too, as the one in a SearchInput does.

A list that would run past the side of the screen, or of the dialog or scrolling box it opens in, slides back inside it. In a container too short for it above and below, such as a one-field Modal, it opens below its field at its own height, and the container grows to hold it or scrolls down to it. The list keeps at least four rows in view, or all of them when it has fewer.

API

PropTypeDefaultDescription
value string''Bindable selected value (the option's value, not its label).
options requiredListOption[] no defaultOption list.
label string no defaultField label rendered above the input.
placeholder string'Search'Placeholder shown when nothing is selected.
hint string no defaultSubdued hint below the input.
error string no defaultError message. Reddens the border.
allowClear booleantrueRender an inline × button to clear the selection.
disabled booleanfalseDisable the input.
required booleanfalseMark as required for form validation.
filter FilterFn<ListOption> | false no defaultReplaces the default matcher, or false to switch local filtering off.
id string no defaultDOM id. Generated when omitted.
name string no defaultNative form name.
class string no defaultExtra classes on the field wrapper.
onchange (value: string) => void no defaultFires on selection or clear.
noAI booleanfalseKeep the value from an assistant: a FormAssist never reports it or fills it, and the control is marked data-no-ai for a browser agent.

ListOption

The same shape MultiSelect takes, so a list is typed once.

PropTypeDefaultDescription
value requiredstring no defaultThe chosen value.
label requiredstring no defaultWhat the user reads.
disabled boolean no defaultBlocks this row alone.
keywords string[] no defaultExtra words the default matcher searches alongside the label.