kemiljk

Combobox

Component

About

A searchable, filterable dropdown input that lets a user type to narrow a list of options and select one, built on the WAI-ARIA 1.2 combobox pattern with keyboard navigation and optional grouped results.

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 frameworks = [
  { value: "astro", label: "Astro" },
  { value: "next", label: "Next.js" },
  { value: "remix", label: "Remix" },
  { value: "sveltekit", label: "SvelteKit" },
  { value: "nuxt", label: "Nuxt" },
];

export default function ComboboxDemo() {
  return (
    <div style={{ inlineSize: "16rem" }}>
      <Combobox
        label="Framework"
        options={frameworks}
        placeholder="Search frameworks…"
      />
    </div>
  );
}

More by kemiljk

View all
  • Switch

    Switch

    8
  • Color Picker

    Color Picker

    1
  • Progress

    Progress

  • Navigation Menu

    Navigation Menu

  • Toggle

    Toggle

  • Radio Group

    Radio Group

  • Avatar

    Avatar

  • Checkbox

    Checkbox