Dropdown menu

Dropdown menu: A focused list of actions anchored to a trigger. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Dropdown menu

npx motion-ui-skill add dropdown-menu

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • @radix-ui/react-dropdown-menu
  • clsx
  • lucide-react
  • motion
  • react
  • react-dom
  • tailwind-merge

Source files

A focused list of actions anchored to a trigger.

Install

npx motion-ui-skill add dropdown-menu

Dependencies

  • @radix-ui/react-dropdown-menu
  • clsx
  • lucide-react
  • motion
  • react
  • tailwind-merge

Usage

"use client";

import { DropdownMenu as DropdownMenu } from "@/components/motion/dropdown-menu";

export function Example() {
  return (
    <div className="p-6">
      <DropdownMenu />
    </div>
  );
}

Browse this category