Select

Search Select

A combobox with text search: typing filters the long list of options, and the arrow keys plus Enter pick one without a mouse or a native select.

What you can change

  • the options array and its copy
  • the field caption through label, the placeholder through placeholder, the empty-result text through emptyText
  • the accent through the accent prop — it colours the border, focus ring and the active option highlight

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.ru/c/select-010?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

For developers

The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.

Technical notes

Client component: useState holds the query, whether the panel is open, the highlighted index and the selected value; useMemo filters options by a case-insensitive substring; useEffect closes the panel on a click outside the root (document mousedown) and keeps the highlighted index in sync with the filtered list. The field is a role=combobox with aria-expanded/aria-controls/aria-activedescendant, and the list is a role=listbox with role=option and aria-selected. A click on an option is caught on onMouseDown with preventDefault, so that the click is not lost to the input's blur. If name is passed, a hidden input with the real value is rendered next to it — the visible field holds only the search text. The palette lives in --vibeui-select-010-*.

Tags

  • select
  • combobox
  • search
  • form
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…