About
Filters large lists to selectable options based on the matching query.
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
import { Combobox } from "@/components/ui/combobox";
const options = [
{ value: "a", label: "One" },
{ value: "b", label: "Two" },
{ value: "c", label: "Three" }
];
export default function SizesDemo() {
return (
<div className="flex flex-col items-center gap-4 w-3/4">
<Combobox placeholder="Search..." size="small">
<Combobox.Input />
<Combobox.List>
{options.map((option) => (
<Combobox.Option key={option.value} value={option.value}>
{option.label}
</Combobox.Option>
))}
</Combobox.List>
</Combobox>
<Combobox placeholder="Search...">
<Combobox.Input />
<Combobox.List>
{options.map((option) => (
<Combobox.Option key={option.value} value={option.value}>
{option.label}
</Combobox.Option>
))}
</Combobox.List>
</Combobox>
<Combobox placeholder="Search..." size="large">
<Combobox.Input />
<Combobox.List>
{options.map((option) => (
<Combobox.Option key={option.value} value={option.value}>
{option.label}
</Combobox.Option>
))}
</Combobox.List>
</Combobox>
</div>
);
}








