kuratlielia

Combobox

Component

About

A searchable dropdown input that lets users filter and select one option from a list without leaving the text field.

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 from "@/components/ui/combobox";

const frameworks = [
  { value: "next", label: "Next.js" },
  { value: "remix", label: "Remix" },
  { value: "astro", label: "Astro" },
  { value: "svelte", label: "SvelteKit" },
  { value: "nuxt", label: "Nuxt" },
];

export default function ComboboxDemo() {
  return (
    <div className="flex min-h-[400px] w-full items-center justify-center p-10">
      <div className="w-full max-w-sm">
        <Combobox
          label="Framework"
          options={frameworks}
          placeholder="Search frameworks…"
          description="Pick the framework your project uses."
        />
      </div>
    </div>
  );
}

Dependencies

More by kuratlielia

View all
  • Activity Heatmap

    Activity Heatmap

    328
  • Image Compare

    Image Compare

    102
  • User Menu

    User Menu

    93
  • Date Range Picker

    Date Range Picker

    62
  • Stats Band

    Stats Band

    50
  • Usage Meter

    Usage Meter

    45
  • Signature Pad

    Signature Pad

    36
  • Timeline

    Timeline

    33