Edwin Vakayil

Select (Radix UI)

Forms 8

About

An animated compound select dropdown built on Radix UI primitives with trigger press feedback, chevron rotation, grouped rows, labels, scroll buttons, and smooth panel motion.

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

Code

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

Usage.tsx

import {
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from "@/components/ui/r-select";

const FRAMEWORKS = [
  { value: "next", label: "Next.js" },
  { value: "remix", label: "Remix" },
  { value: "astro", label: "Astro" },
  { value: "vite", label: "Vite" },
  { value: "nuxt", label: "Nuxt" },
];

export default function SelectDemo() {
  return (
    <div className="flex w-full items-center justify-center p-10">
      <div className="w-full max-w-[280px]">
        <Select defaultValue="next">
          <SelectTrigger
            label="Framework"
            description="Pick the framework you want to scaffold."
          >
            <SelectValue placeholder="Select a framework">
              {(value) =>
                FRAMEWORKS.find((f) => f.value === value)?.label ??
                "Select a framework"
              }
            </SelectValue>
          </SelectTrigger>
          <SelectContent>
            {FRAMEWORKS.map((f) => (
              <SelectItem key={f.value} value={f.value}>
                {f.label}
              </SelectItem>
            ))}
          </SelectContent>
        </Select>
      </div>
    </div>
  );
}

Dependencies

More by Edwin Vakayil

View all
  • Origin Button

    Origin Button

    796
  • Infinite Ribbon

    Infinite Ribbon

    543
  • Shimmer Text

    Shimmer Text

    414
  • Dia Text

    Dia Text

    349
  • Icon Bar

    Icon Bar

    247
  • FAQ Pro

    FAQ Pro

    229
  • Verified Badge

    Verified Badge

    215
  • New Card

    New Card

    187

More in Forms

View all
  • Premium Auth

    Premium Auth

    522
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    72
  • Form

    Form

    137
  • Login 1

    Login 1

    52
  • Split Sign In Form

    Split Sign In Form

    44
  • SignInPage

    SignInPage

    666
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K