Combobox
Async Check
A picker with an asynchronous check: after a click the status line goes into “checking”, then answers with the stock left or a refusal with a reason.
What you can change
- label — the field caption; placeholder — the hint in the search field
- options — the option list
- stock — the source of the check's answer: the amount left per option
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-018?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-018-* variables. Client component: the query, the value and the check state live in useState. The check is moved into a useEffect with a cleanup function: the timer is cancelled on every change of the value, so when options are switched quickly the last selection wins rather than the last answer to arrive — this cures the classic race. The check state is one of four values (idle, checking, ok, bad) and is raised as a data-state attribute, so the colour of the status line is set by CSS rather than by branching styles in JSX. The spinner is assembled from a border with a rotation animation and is switched off by a prefers-reduced-motion rule. The status line is linked to the field through aria-describedby and announced through aria-live.
Tags
- combobox
- async
- validation
- stock
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…