Combobox
Preview Pane
A picker with a preview pane on the right: it holds the description of the option under the active row, updating on hover and arrow keys, not only after a choice.
What you can change
- the options through options: a name and a description for each
- the initial choice through defaultValue
- the empty-result text through emptyLabel
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/combobox-025?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, zero dependencies, its own palette in the local --vibeui-combobox-025-* variables. Client component: the query, the value and the cursor live in useState. The layout is a flex-wrap of two blocks: the list on the left and the preview pane on the right, and at a narrow width they wrap below one another with no media queries. The pane shows the description of the row under the cursor (matches[active]) rather than only of the confirmed value — so the preview can be scrolled with the arrow keys before Enter is pressed. The pane is a role="region" with aria-live="polite", and the list is a role="listbox" with aria-activedescendant on the filter field.
Tags
- combobox
- preview
- two-pane
- description
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…