Select
Create from Search
Search lives inside the open list and highlights the matched fragment, while the last row offers Create — it appears only while there is no exact match; a created value stays in the list with a "new" badge.
What you can change
- the reference list through options — value and label
- the field label through label, the empty-field text through placeholder, the search hint through searchPlaceholder
- the create row through createLabel — {query} is replaced by the typed text
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/select-036?lang=en&theme=dark
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
The component is self-contained: one file, no dependencies, its own palette in the local --vibeui-select-036-* variables. The field is a plain button showing the value; search opens together with the list and lives inside the panel: an input with role="combobox", aria-autocomplete="list" and aria-activedescendant, next to a role="listbox" holding the option rows and, last, the create row. Matching is case-insensitive, the matched fragment is wrapped in <mark> and highlighted with a background rather than a text colour: on a coloured surface recoloured text stops reading. The create row is shown only while no option matches the query exactly — otherwise it would offer a duplicate; it prints the Enter hint, and Enter really does run it while that row is active. A created value is appended to the list and badged so it stands out among the reference ones. The defaultQuery prop pre-fills the search — the showcase and debugging use it. The open prop expands the list in page flow; there is no light dismiss in that mode. When name is set, the value is submitted through a hidden input.
Tags
- select
- creatable
- search
- highlight
- tags
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…