redrob-labs

Combobox

Forms

About

A searchable dropdown input that lets a user type to filter a list of options and pick one, built for lists too long to scroll comfortably.

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 * as React from "react";
import Combobox from "@/components/ui/combobox";

const frameworks = [
  {
    value: "next",
    label: "Next.js",
    description: "The React framework for the web",
  },
  { value: "remix", label: "Remix", description: "Full stack web framework" },
  {
    value: "astro",
    label: "Astro",
    description: "Content-driven web framework",
  },
  {
    value: "sveltekit",
    label: "SvelteKit",
    description: "The fastest way to build Svelte apps",
  },
  {
    value: "nuxt",
    label: "Nuxt",
    description: "The intuitive web framework for Vue",
  },
  {
    value: "gatsby",
    label: "Gatsby",
    description: "React-based framework for static sites",
  },
];

export default function ComboboxDemo() {
  return (
    <div className="w-full max-w-sm">
      <Combobox
        label="Framework"
        hint="Start typing to filter the list"
        placeholder="Search frameworks..."
        options={frameworks}
        defaultValue="next"
      />
    </div>
  );
}

More by redrob-labs

View all
  • Alert

    Alert

    51
  • Meter

    Meter

    32
  • Schedule Picker

    Schedule Picker

    30
  • Switch

    Switch

    11
  • Status Card

    Status Card

    11
  • Hero Section

    Hero Section

    11
  • Memory Scope

    Memory Scope

    10
  • Accordion

    Accordion

    5

More in Forms

View all
  • Form

    Form

    7
  • Contact Form

    Contact Form

    32
  • Login 2

    Login 2

    16
  • Contact Card

    Contact Card

    1.1K
  • Book A Demo 1

    Book A Demo 1

    94
  • Paper Plane

    Paper Plane

    80
  • Premium Auth

    Premium Auth

    613
  • Authentication Card

    Authentication Card

    52