Combobox
Narrow Column
A picker for a narrow column where the list truncates on the right while the selected value truncates in the middle, keeping both its head and its tail.
What you can change
- label — the field caption; placeholder — the hint in the filter field
- options — the list of values
- defaultValue — the value selected at first render
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-020?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-020-* variables. Client component: the query and the value live in useState. The width is capped at 15rem — this is a table cell, a sidebar column or a side panel. The truncation is done two different ways on purpose: the list rows are cut by CSS (white-space: nowrap plus text-overflow: ellipsis), because a list is read from the start; the selected value is cut in the middle by the shorten function, because for a path, a branch or a file the tail is what matters. The full text is not lost anywhere: it sits in the title of every row, in the option's aria-label, and is printed in full below with overflow-wrap: anywhere. The monospace font is switched on for the values only — that way identical prefixes line up visually into a column.
Tags
- combobox
- narrow
- truncation
- sidebar
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…