For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/components/auto-complete.md.
v0.0.57
  • English
  • AutoComplete

    Data Entry@rockshin/tao-ui

    Editable 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

    TSX

    Filter by a label

    Search can compare the typed text against the displayed label or the stored value.

    TSX

    Keyboard backfill

    Arrow keys preview the active option in the input; Enter commits it.

    TSX

    Reuse a custom Input

    A single input child becomes the editable control. Its own prefix and appearance are retained.

    TSX

    Grouped suggestions

    Group related options under a label and customize the rendered option content.

    TSX

    Delayed suggestions

    This local example waits 400 ms after typing and cancels the previous request simulation.

    TSX

    Appearance and states

    Size, variant, status and disabled are local overrides of TaoProvider defaults.

    TSX

    Suggestions in a narrow form

    Use the phone preview to type, select, and clear. AutoComplete retains an editable input and popup on mobile.

    390 × 640
    TSX

    API

    AutoComplete

    PropertyDescriptionTypeDefault Value