Native Select
Grouped Options
A native select with sections on <optgroup>: identical names stop being confusing because the system labels the groups itself.
What you can change
- the field name through label, the explanation through hint and the sections through groups
- the focus color through accent
- the weight and color of the section headings
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/nativeselect-002?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, palette in the local --vibeui-nativeselect-002-* variables. Server component: the only hook is useId. Sections are declared with the built-in <optgroup label>: the browser draws the headings non-clickable on its own, and a screen reader speaks the section name before the option — in a hand-built list the same thing has to be assembled from role="group" and aria-labelledby. The typeface of the headings is the only thing you can influence inside an open list, so optgroup gets a font-weight and a color, while option is returned to normal weight. The arrow is drawn with two borders and does not catch clicks.
Tags
- select
- optgroup
- native
- grouping
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…