Combobox
Create First
A combobox that creates a value on the first row: "Create '…'" sits at the top of the list, so Enter creates by default instead of picking a match.
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
- the starting list through options and the action caption through createLabel
- the new-value marker through newBadge
- the empty-result text through emptyLabel
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.club/c/combobox-021?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…
How to use
<Combobox021
label="Issue label"
options={["Bug", "Enhancement"]}
createLabel="Create"
onSelect={(value, created) => console.log(value, created)}
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Action caption
createLabel· default: Create- New marker
newBadge· default: new- Accent
accent· default: theme colour- Background
background· default: theme colour
More in Combobox
FAQ
- How do I add Create First 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 Create First depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Create First?
- Adapt: the starting list through options and the action caption through createLabel; the new-value marker through newBadge; the empty-result text through emptyLabel. Keep as installed: the local --vibeui-combobox-021-* palette — do not swap it for your theme tokens; the create row's position at the very top of the list — that is the point of this variant, moving it down turns it into combobox-005; resetting the cursor to 0 on every keystroke: without it Enter does not predictably land on the create row.
- Is Create First 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-021.jsonThis 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, no dependencies, its own --vibeui-combobox-021-* palette. Client component: useState holds the known list, the list of created items, the query, the value and the cursor. The create row is added to the start of the row array rather than to the end: canCreate is computed the same way as in the closed variant, but rows are assembled as [needle, ...matches]. The cursor index is always reset to 0 on typing, so Enter lands on the create row by default — an existing match has to be taken deliberately with the down arrow. The create row is a full role="option" with aria-selected="false", set off by a dashed rule below and by an icon of its own, so it cannot be confused with an ordinary option.
Tags
- combobox
- create
- keyboard
- tags
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…