Combobox
Form Field
A combobox inside a form: people see the caption while a hidden input with a real name carries the code, so the form submits normally and lands in FormData.
What you can change
- the field key through name and the list content through options
- the button caption through submitLabel and the field caption through label
- the placeholder text through placeholder
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-012?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 --vibeui-combobox-012-* palette. The root is a form, and the value lives in an input type="hidden" with a real name, so ordinary submission, FormData and a Server Action all work: a hand-drawn list cannot submit itself. The label and the code are kept apart: options are value and label pairs, the list shows the code in small monospaced text, and it is the code that travels to the server. The submit button is disabled while nothing is chosen; the handler reads FormData from the form and shows what actually went out. The filter field is a role="combobox" with aria-controls and aria-activedescendant, and the list is a role="listbox" with aria-selected on the rows.
Tags
- combobox
- form
- formdata
- hidden input
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…