Select

Create from Search

Search lives inside the open list and highlights the matched fragment, while the last row offers Create — it appears only while there is no exact match; a created value stays in the list with a "new" badge.

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 reference list through options — value and label
  • the field label through label, the empty-field text through placeholder, the search hint through searchPlaceholder
  • the create row through createLabel — {query} is replaced by the typed text

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme
Create from Search — Search lives inside the open list and highlights the matched fragment, while the last row offers Create — it appears only while there is no exact match; a created value stays in the list with a "new" badge.

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/select-036?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

<Select036
  label="Request topic"
  name="topic"
  createLabel="Create “{query}”"
  options={[
    { value: "design-system", label: "Design system" },
    { value: "analytics", label: "Analytics" },
  ]}
/>

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

Settings

Label
label · default: Request topic
Create row
createLabel · default: Create “{query}”
Accent
accent · default: theme colour
Background
background · default: theme colour

FAQ

How do I add Create from Search 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 from Search depend on?
No npm packages beyond React and Tailwind CSS.
What can I change in Create from Search?
Adapt: the reference list through options — value and label; the field label through label, the empty-field text through placeholder, the search hint through searchPlaceholder; the create row through createLabel — {query} is replaced by the typed text. Keep as installed: the local --vibeui-select-036-* palette — do not swap it for your theme tokens (bg-popover, border-input and the like); the condition on the create row: it has to disappear on an exact match, otherwise the UI offers to create a duplicate; the match highlight through <mark> with a background rather than a text colour — recoloured text drowns on a coloured surface.
Is Create from Search 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/select-036.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, no dependencies, its own palette in the local --vibeui-select-036-* variables. The field is a plain button showing the value; search opens together with the list and lives inside the panel: an input with role="combobox", aria-autocomplete="list" and aria-activedescendant, next to a role="listbox" holding the option rows and, last, the create row. Matching is case-insensitive, the matched fragment is wrapped in <mark> and highlighted with a background rather than a text colour: on a coloured surface recoloured text stops reading. The create row is shown only while no option matches the query exactly — otherwise it would offer a duplicate; it prints the Enter hint, and Enter really does run it while that row is active. A created value is appended to the list and badged so it stands out among the reference ones. The defaultQuery prop pre-fills the search — the showcase and debugging use it. The open prop expands the list in page flow; there is no light dismiss in that mode. When name is set, the value is submitted through a hidden input.

Tags

  • select
  • creatable
  • search
  • highlight
  • tags
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…