# Dropdown menu with status indicator

> Dropdown menu with status indicator

A shadcn/ui block from the [@reui](https://reui.io) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/reui/c-button-group-7).

- Page, with a live preview: https://shadcn.exchange/r/reui/c-button-group-7
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-button-group-7-light-d77b044cf30633dc.png
- Registry item: https://reui.io/r/new-york-v4/c-button-group-7.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://reui.io/r/new-york-v4/c-button-group-7.json
```

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

## Dependencies

- Registry items: `button`, `button-group`, `dropdown-menu`

## Files

### `c-button-group-7.tsx`

```tsx
import { Button } from "@/components/ui/button"
import {
  ButtonGroup,
  ButtonGroupText,
} from "@/components/ui/button-group"
import {
  DropdownMenu,
  DropdownMenuContent,
  DropdownMenuGroup,
  DropdownMenuItem,
  DropdownMenuLabel,
  DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"

export function Pattern() {
  return (
    <ButtonGroup>
      <DropdownMenu>
        <DropdownMenuTrigger
          render={
            <Button variant="outline" className="gap-2">
              <IconPlaceholder
                lucide="GitMergeIcon"
                tabler="IconGitMerge"
                hugeicons="GitMergeIcon"
                phosphor="GitMergeIcon"
                remixicon="RiGitMergeLine"
                aria-hidden="true"
              />
              <span>main</span>
              <IconPlaceholder
                lucide="ChevronDownIcon"
                tabler="IconChevronDown"
                hugeicons="ArrowDown01Icon"
                phosphor="CaretDownIcon"
                remixicon="RiArrowDownSLine"
                aria-hidden="true"
                className="size-3.5 opacity-60"
              />
            </Button>
          }
        />
        <DropdownMenuContent align="start" className="w-48">
          <DropdownMenuGroup>
            <DropdownMenuLabel>Switch Branch</DropdownMenuLabel>
            <DropdownMenuItem>
              <IconPlaceholder
                lucide="GitBranchIcon"
                tabler="IconGitBranch"
                hugeicons="GitBranchIcon"
                phosphor="GitBranchIcon"
                remixicon="RiGitBranchLine"
                aria-hidden="true"
              />
              <span>main</span>
              <IconPlaceholder
                lucide="CheckIcon"
                tabler="IconCheck"
                hugeicons="Tick02Icon"
                phosphor="CheckIcon"
                remixicon="RiCheckLine"
                aria-hidden="true"
                className="text-primary ml-auto size-3.5"
              />
            </DropdownMenuItem>
            <DropdownMenuItem>
              <IconPlaceholder
                lucide="GitBranchIcon"
                tabler="IconGitBranch"
                hugeicons="GitBranchIcon"
                phosphor="GitBranchIcon"
                remixicon="RiGitBranchLine"
                aria-hidden="true"
              />
              <span>develop</span>
            </DropdownMenuItem>
            <DropdownMenuItem>
              <IconPlaceholder
                lucide="GitBranchIcon"
                tabler="IconGitBranch"
                hugeicons="GitBranchIcon"
                phosphor="GitBranchIcon"
                remixicon="RiGitBranchLine"
                aria-hidden="true"
              />
              <span>feature/auth</span>
            </DropdownMenuItem>
          </DropdownMenuGroup>
        </DropdownMenuContent>
      </DropdownMenu>

      <ButtonGroupText className="bg-transparent">
        <div className="size-1.5 animate-pulse rounded-full bg-green-600" />
        <span>Production</span>
      </ButtonGroupText>

      <Button variant="outline" size="icon">
        <IconPlaceholder
          lucide="RefreshCwIcon"
          tabler="IconRefreshDot"
          hugeicons="Refresh04Icon"
          phosphor="ArrowsClockwiseIcon"
          remixicon="RiRestartLine"
          aria-hidden="true"
        />
      </Button>

      <Button variant="outline" size="icon">
        <IconPlaceholder
          lucide="ExternalLinkIcon"
          tabler="IconExternalLink"
          hugeicons="LinkSquare01Icon"
          phosphor="ArrowSquareOutIcon"
          remixicon="RiExternalLinkLine"
          aria-hidden="true"
        />
      </Button>
    </ButtonGroup>
  )
}
```
