Select
Grouped List
The component draws the list itself instead of leaving it to the operating system: section headings stick to the top while scrolling, the selected row carries a check mark, and the section of the current value is named on the right of the field.
What you can change
- the sections and their contents through groups — the section label and options with value and label
- the field label through label
- the initial value through defaultValue
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-034?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-034-* variables. No native <select> is involved: the list is real markup, so sections, the check mark and the active row highlight belong to the design instead of the operating system. Inside is a role="listbox" with nested role="group", every heading tied to its group through aria-labelledby and stuck to the top of the panel with position:sticky. Keyboard: arrows move the active row, Home and End jump to the ends of the list, Enter and Space pick, Esc closes and returns focus to the field; the active row is announced through aria-activedescendant. The check mark is drawn with two rotated borders, so no icon library is needed; unselected rows keep its slot via visibility, otherwise the text jumps at the moment of selection. The open prop expands the list in page flow — a showcase mode for the catalogue card and screenshots, with no light dismiss. When name is set, the value is submitted through a hidden input.
Tags
- select
- listbox
- group
- checkmark
- keyboard
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…