About
A searchable input with a filtered dropdown list for picking one option, or several as removable chips, from a set of items.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Combobox to your project and fits it to your theme.
Code
How Combobox is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import {
Combobox,
ComboboxInput,
ComboboxContent,
ComboboxEmpty,
ComboboxList,
ComboboxItem,
} from "@/components/ui/combobox";
const frameworks = [
"Next.js",
"Remix",
"Astro",
"Nuxt.js",
"SvelteKit",
"SolidStart",
];
export default function ComboboxDemo() {
return (
<div className="w-full max-w-70">
<Combobox items={frameworks}>
<ComboboxInput
placeholder="Search a framework"
aria-label="Search a framework"
/>
<ComboboxContent>
<ComboboxEmpty>No frameworks found.</ComboboxEmpty>
<ComboboxList>
{(item: string) => (
<ComboboxItem key={item} value={item}>
{item}
</ComboboxItem>
)}
</ComboboxList>
</ComboboxContent>
</Combobox>
</div>
);
}







