---
title: "Dropdown menu | Free React & Tailwind Motion Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/motion/dropdown-menu"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/motion/dropdown-menu.tsx"
install_command: "npx motion-ui-skill add dropdown-menu"
dependencies: ["@radix-ui/react-dropdown-menu","clsx","lucide-react","motion","react","react-dom","tailwind-merge"]
category: "motion"
subcategory: "motion"
---

# Dropdown menu

> A focused list of actions anchored to a trigger.

## Install

```bash
npx motion-ui-skill add dropdown-menu
```

## Dependencies

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

## Usage

```tsx
"use client";

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

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

## Source Files

- [components/motion/dropdown-menu.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/motion/dropdown-menu.tsx)
- [components/motion/dropdown-menu.module.css](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/motion/dropdown-menu.module.css)
- [lib/motion-tokens.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/motion-tokens.ts)
- [lib/portal.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/portal.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
