Chetan Verma

Dropdowm Menu

Component 613

About

Dropdown menu component with framer motion and tailwind css.

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

Code

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

Usage.tsx

import { DropdownMenu } from "@/components/ui/dropdown-menu"
import { Pencil, Trash, Copy } from "lucide-react"

const DropdownMenuDemo = () => {
  return (
    <DropdownMenu
      options={[
        {
          label: "Edit",
          onClick: () => console.log("Edit"),
          Icon: <Pencil className="h-4 w-4" />,
        },
        {
          label: "Duplicate",
          onClick: () => console.log("Duplicate"),
          Icon: <Copy className="h-4 w-4" />,
        },
        {
          label: "Delete",
          onClick: () => console.log("Delete"),
          Icon: <Trash className="h-4 w-4" />,
        },
      ]}
    >
      Options
    </DropdownMenu>
  );
};

export { DropdownMenuDemo }

Dependencies

More by Chetan Verma

View all
  • Animated Tabs

    Animated Tabs

    1.6K
  • Floating Action Menu

    Floating Action Menu

    1.6K
  • Video Player

    Video Player

    1.4K
  • Stacked Cards Interaction

    Stacked Cards Interaction

    831
  • Input With Tags

    Input With Tags

    543
  • Avatar Group

    Avatar Group

    517
  • Audio Player

    Audio Player

    368
  • Stacking Navbar

    Stacking Navbar

    362