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
















