AutoComplete
@rockshin/tao-uiEditable text with suggestions, grouped options, keyboard completion and custom inputs.
Each example can be copied and run independently. Use the device control on framed previews to switch between desktop and phone widths.
Sizes are small, medium and large; the compatible middle alias uses the same dimensions as medium.
Examples
Free text and suggestions
The value remains editable even when it is not in the options list. Control it with onChange.
Value: empty
Filter by a label
Search can compare the typed text against the displayed label or the stored value.
Keyboard backfill
Arrow keys preview the active option in the input; Enter commits it.
Reuse a custom Input
A single input child becomes the editable control. Its own prefix and appearance are retained.
Grouped suggestions
Group related options under a label and customize the rendered option content.
Delayed suggestions
This local example waits 400 ms after typing and cancels the previous request simulation.
Appearance and states
Size, variant, status and disabled are local overrides of TaoProvider defaults.
Suggestions in a narrow form
Use the phone preview to type, select, and clear. AutoComplete retains an editable input and popup on mobile.