# Dropdown Menu Actions 2 - Table row actions

> Per-row overflow menu for view, edit, and archive on table records.

A shadcn/ui block from the [@shadcnblocks](https://shadcnblocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcnblocks/dropdown-menu-dropdown-menu-actions-2).

- Page, with a live preview: https://shadcn.exchange/r/shadcnblocks/dropdown-menu-dropdown-menu-actions-2
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcnblocks/dropdown-menu-dropdown-menu-actions-2-light-32415c4ed4614e49.png
- Registry item: https://shadcnblocks.com/r/dropdown-menu-dropdown-menu-actions-2.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://shadcnblocks.com/r/dropdown-menu-dropdown-menu-actions-2.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `lucide-react`
- Registry items: `button`, `dropdown-menu`

## Files

### `example/dropdown-menu/dropdown-menu-actions-2.tsx`

```tsx
"use client";

import {
  Archive,
  Copy,
  Edit,
  Flag,
  MoreVertical,
  Star,
  Trash2,
} from "lucide-react";

import { Button } from "@/components/ui/button";
import {
  DropdownMenu,
  DropdownMenuContent,
  DropdownMenuItem,
  DropdownMenuSeparator,
  DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";

export const title = "Table Row Actions";

const Example = () => (
  <DropdownMenu>
    <DropdownMenuTrigger asChild>
      <Button className="h-8 w-8" size="icon" variant="ghost">
        <MoreVertical className="h-4 w-4" />
      </Button>
    </DropdownMenuTrigger>
    <DropdownMenuContent align="end" className="w-40">
      <DropdownMenuItem>
        <Edit />
        Edit
      </DropdownMenuItem>
      <DropdownMenuItem>
        <Copy />
        Duplicate
      </DropdownMenuItem>
      <DropdownMenuSeparator />
      <DropdownMenuItem>
        <Star />
        Favorite
      </DropdownMenuItem>
      <DropdownMenuItem>
        <Flag />
        Report
      </DropdownMenuItem>
      <DropdownMenuSeparator />
      <DropdownMenuItem>
        <Archive />
        Archive
      </DropdownMenuItem>
      <DropdownMenuItem variant="destructive">
        <Trash2 />
        Delete
      </DropdownMenuItem>
    </DropdownMenuContent>
  </DropdownMenu>
);

export default Example;
```
