# Star button group with count and dropdown

> Star button group with count and dropdown

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

- Page, with a live preview: https://shadcn.exchange/r/reui/c-button-group-15
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-button-group-15-light-1f98636dab6d35c8.png
- Registry item: https://reui.io/r/new-york-v4/c-button-group-15.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-15.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: `@reui/badge`, `button`, `button-group`, `dropdown-menu`

## Files

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

```tsx
import { Badge } from "@/components/reui/badge"

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

export function Pattern() {
  return (
    <ButtonGroup>
      <Button variant="outline">
        <IconPlaceholder
          lucide="StarIcon"
          tabler="IconStar"
          hugeicons="StarIcon"
          phosphor="StarIcon"
          remixicon="RiStarLine"
          aria-hidden="true"
        />
        <span>Star</span>
        <Badge variant="secondary">2.4k</Badge>
      </Button>
      <DropdownMenu>
        <DropdownMenuTrigger render={<Button variant="outline" size="icon" />}>
          <IconPlaceholder
            lucide="ChevronDownIcon"
            tabler="IconChevronDown"
            hugeicons="ArrowDown01Icon"
            phosphor="CaretDownIcon"
            remixicon="RiArrowDownSLine"
            aria-hidden="true"
          />
          <span className="sr-only">Toggle dropdown</span>
        </DropdownMenuTrigger>
        <DropdownMenuContent align="end" className="min-w-40">
          <DropdownMenuItem>
            <IconPlaceholder
              lucide="EyeIcon"
              tabler="IconEye"
              hugeicons="ViewIcon"
              phosphor="EyeIcon"
              remixicon="RiEyeLine"
              aria-hidden="true"
            />
            Watch
          </DropdownMenuItem>
          <DropdownMenuItem>
            <IconPlaceholder
              lucide="GitForkIcon"
              tabler="IconGitFork"
              hugeicons="GitForkIcon"
              phosphor="GitForkIcon"
              remixicon="RiGitForkLine"
              aria-hidden="true"
            />
            Fork
          </DropdownMenuItem>
          <DropdownMenuItem>
            <IconPlaceholder
              lucide="ListPlusIcon"
              tabler="IconPlaylistAdd"
              hugeicons="ListSettingIcon"
              phosphor="ListPlusIcon"
              remixicon="RiPlayListAddLine"
              aria-hidden="true"
            />
            Add to list
          </DropdownMenuItem>
          <DropdownMenuSeparator />
          <DropdownMenuItem>
            <IconPlaceholder
              lucide="Share2Icon"
              tabler="IconShare"
              hugeicons="Share08Icon"
              phosphor="ShareNetworkIcon"
              remixicon="RiStackshareLine"
              aria-hidden="true"
            />
            Share
          </DropdownMenuItem>
          <DropdownMenuItem>
            <IconPlaceholder
              lucide="BellIcon"
              tabler="IconBell"
              hugeicons="NotificationIcon"
              phosphor="BellIcon"
              remixicon="RiNotificationLine"
              aria-hidden="true"
            />
            Notifications
          </DropdownMenuItem>
          <DropdownMenuSeparator />
          <DropdownMenuItem>
            <IconPlaceholder
              lucide="FlagIcon"
              tabler="IconFlag"
              hugeicons="Flag02Icon"
              phosphor="FlagIcon"
              remixicon="RiFlagLine"
              aria-hidden="true"
            />
            Report
          </DropdownMenuItem>
        </DropdownMenuContent>
      </DropdownMenu>
    </ButtonGroup>
  )
}
```
