f0rextasy

Grouped Select

Forms

About

A grouped dropdown select with sticky group headers, disabled options, and keyboard/outside-click dismissal, for picking a value from categorized option lists.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Grouped Select to your project and fits it to your theme.

Code

How Grouped Select is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { SelectV2 } from "@/components/ui/select-v2";

export default function SelectV2Demo() {
  return (
    <div className="flex min-h-[320px] w-full items-center justify-center bg-background p-8">
      <div className="w-full max-w-xs">
        <SelectV2
          label="Seat"
          placeholder="Choose a seat..."
          groups={[
            {
              label: "Floor",
              options: [
                { value: "a1", label: "Row A, Seat 1" },
                { value: "a2", label: "Row A, Seat 2" },
                { value: "b1", label: "Row B, Seat 1" },
                { value: "b2", label: "Row B, Seat 2 (taken)", disabled: true },
              ],
            },
            {
              label: "Balcony",
              options: [
                { value: "c1", label: "Row C, Seat 1" },
                { value: "c2", label: "Row C, Seat 2" },
              ],
            },
          ]}
        />
      </div>
    </div>
  );
}

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    19
  • Board Checklist

    Board Checklist

    15
  • Stamp Seal

    Stamp Seal

    15
  • Network Graph

    Network Graph

    14
  • Navbar

    Navbar

    12
  • Running Order Timeline

    Running Order Timeline

    11
  • Milestone Chart

    Milestone Chart

    10
  • Empty State Card

    Empty State Card

    7

More in Forms

View all
  • Login 1

    Login 1

    64
  • Premium Auth

    Premium Auth

    571
  • Contact Card

    Contact Card

    1.1K
  • Form

    Form

    18
  • Book A Demo 1

    Book A Demo 1

    91
  • Authentication Card

    Authentication Card

    52
  • Card Studio

    Card Studio

    47
  • Login Card

    Login Card

    35