tigran tumasov

Combobox

Component 8

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 { useState } from "react";
import { Combobox } from "@/components/ui/combobox";

export default function ControlledDemo() {
  const [value, setValue] = useState<string | null>("b");
  return (
      <div className="w-3/4">
        <Combobox onChange={setValue} placeholder="Search..." value={value}>
          <Combobox.Input />
          <Combobox.List>
            <Combobox.Option value="a">One</Combobox.Option>
            <Combobox.Option value="b">Two</Combobox.Option>
            <Combobox.Option value="c">Three</Combobox.Option>
          </Combobox.List>
        </Combobox>
      </div>
  );
}

Dependencies

More by tigran tumasov

View all
  • Product Hunt Badge

    Product Hunt Badge

    1.8K
  • Book

    Book

    162
  • Calendar

    Calendar

    152
  • Theme Switcher

    Theme Switcher

    135
  • Snippet

    Snippet

    124
  • Table

    Table

    123
  • Toggle

    Toggle

    89
  • Feedback

    Feedback

    88