Edwin Vakayil

Dropdown (Radix UI)

Component 6

About

A compound dropdown menu with select and action variants, animated row highlight, checkbox and radio items, submenus, and a scrollable panel built on Radix primitives.

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

Code

How Dropdown (Radix UI) 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 {
  Dropdown,
  DropdownContent,
  DropdownItem,
  DropdownTrigger,
  DropdownValue,
} from "@/components/ui/r-dropdown";

export default function DropdownDemo() {
  return (
    <div className="flex min-h-[220px] w-full items-center justify-center p-10">
      <div className="w-64">
        <Dropdown defaultValue="next">
          <DropdownTrigger>
            <DropdownValue placeholder="Select a framework" />
          </DropdownTrigger>
          <DropdownContent className="w-full">
            <DropdownItem value="next">Next.js</DropdownItem>
            <DropdownItem value="remix">Remix</DropdownItem>
            <DropdownItem value="astro">Astro</DropdownItem>
            <DropdownItem value="nuxt">Nuxt</DropdownItem>
          </DropdownContent>
        </Dropdown>
      </div>
    </div>
  );
}

Dependencies

More by Edwin Vakayil

View all
  • Origin Button

    Origin Button

    797
  • Infinite Ribbon

    Infinite Ribbon

    544
  • Shimmer Text

    Shimmer Text

    414
  • Dia Text

    Dia Text

    350
  • Icon Bar

    Icon Bar

    247
  • FAQ Pro

    FAQ Pro

    229
  • Verified Badge

    Verified Badge

    215
  • New Card

    New Card

    187