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.

React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.

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

1440pxHost theme
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.

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.club/c/combobox-018?lang=en&theme=dark

2Paste into the chat
3Get it in your project

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…

How to use

<Combobox018 label="Shipping warehouse" delay={700} />

A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.

Settings

Response delay
delay · default: 700
Caption
label · default: Shipping warehouse
Accent
accent · default: theme colour
Background
background · default: theme colour

FAQ

How do I add Async Check with Cursor or Claude Code?
Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
What does Async Check depend on?
No npm packages beyond React and Tailwind CSS.
What can I change in Async Check?
Adapt: 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. Keep as installed: the local --vibeui-combobox-018-* palette — do not swap it for your theme tokens (bg-muted, text-destructive and the like); the cleanup function in useEffect: without cancelling the previous check, a stale answer overwrites the current one; four states instead of a boolean: “not checked yet” and “checked and bad” are different things to a person.
Is Async Check free?
Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.

For developers

npx shadcn@latest add https://vibeui.club/r/pro/combobox-018.json

This command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options

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…