tigran tumasov

Combobox

Component 3

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";

export default function CustomWidthListDemo() {
  return (
      <div className="w-3/4">
        <Combobox placeholder="Search...">
          <Combobox.Input />
          <Combobox.List maxWidth={500}>
            <Combobox.Option value="a">
              Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
              eiusmod tempor incididunt ut labore et dolore magna aliqua.{" "}
            </Combobox.Option>
            <Combobox.Option value="b">
              Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
              nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
              reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
              pariatur.
            </Combobox.Option>
            <Combobox.Option value="c">
              Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
              officia deserunt mollit anim id est laborum.
            </Combobox.Option>
          </Combobox.List>
        </Combobox>
      </div>
  );
}

Dependencies

More by tigran tumasov

View all
  • Product Hunt Badge

    Product Hunt Badge

    1.8K
  • Book

    Book

    161
  • Calendar

    Calendar

    151
  • Theme Switcher

    Theme Switcher

    135
  • Snippet

    Snippet

    124
  • Table

    Table

    123
  • Feedback

    Feedback

    88
  • Toggle

    Toggle

    88