Combobox
Hotkey Open
A combobox that opens with a global hotkey: the shortcut hint is printed right on the trigger button, and the listener skips typing inside someone else's text field.
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 list content through options and the field caption through label
- the placeholder through placeholder and the filter field hint through searchPlaceholder
- the shortcut key itself through triggerKey and its visible caption through hotkeyLabel
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-028?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
<Combobox028
label="Quick commands"
options={["Open project", "Create task"]}
hotkeyLabel="Ctrl+K"
triggerKey="k"
onSelect={(value) => console.log(value)}
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Shortcut caption
hotkeyLabel· default: Ctrl+K- Field caption
label· default: Quick commands- Accent
accent· default: theme colour- Background
background· default: theme colour
More in Combobox
FAQ
- How do I add Hotkey Open 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 Hotkey Open depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Hotkey Open?
- Adapt: the list content through options and the field caption through label; the placeholder through placeholder and the filter field hint through searchPlaceholder; the shortcut key itself through triggerKey and its visible caption through hotkeyLabel. Keep as installed: the local --vibeui-combobox-028-* palette — do not swap it for your theme tokens; the check for a foreign text field before intercepting the shortcut — without it the hotkey breaks typing in any other form on the page; the visible shortcut hint in a <kbd> on the button itself, not in a tooltip: secret shortcuts go unused.
- Is Hotkey Open free?
- The preview is open to everyone; the source is available with a PRO subscription.
For developers
npx shadcn@latest add https://vibeui.club/r/pro/combobox-028.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-028-* palette. Client component: a useEffect subscribes to document keydown and catches Ctrl or Cmd together with triggerKey; before it fires there is a check for whether focus is inside someone else's input, textarea or contenteditable — otherwise the shortcut would intercept typing in any third-party form on the page. A second useEffect moves focus into the filter field on opening, exactly as in the base variant with a trigger button. The shortcut hint sits in a <kbd> inside the trigger button itself — it is not hidden in a tooltip and does not require hovering. Escape closes the panel and returns focus to the button from anywhere, including the case where the panel was opened with the hotkey.
Tags
- combobox
- hotkey
- shortcut
- keyboard
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…