appica-dev

Combobox

Component

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>
  );
}

Dependencies

More by appica-dev

View all
  • Border Beam

    Border Beam

    42
  • Text Animate

    Text Animate

    18
  • Carousel

    Carousel

    13
  • Table of Contents

    Table of Contents

    6
  • Sparkline

    Sparkline

    6
  • Color Area

    Color Area

    6
  • Avatar

    Avatar

    6
  • Background Pattern

    Background Pattern

    3