# Small-size items with badges

> Small-size items with badges

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

- Page, with a live preview: https://shadcn.exchange/r/reui/c-item-8
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-item-8-light-c883aa5574ced9e7.png
- Registry item: https://reui.io/r/new-york-v4/c-item-8.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-item-8.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`, `item`

## Files

### `c-item-8.tsx`

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

import {
  Item,
  ItemActions,
  ItemContent,
  ItemMedia,
  ItemTitle,
} from "@/components/ui/item"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"

const menuItems = [
  {
    icon: (
      <IconPlaceholder
        lucide="InboxIcon"
        tabler="IconInbox"
        hugeicons="InboxIcon"
        phosphor="TrayIcon"
        remixicon="RiInboxLine"
      />
    ),
    label: "Inbox",
    count: 12,
  },
  {
    icon: (
      <IconPlaceholder
        lucide="SendIcon"
        tabler="IconSend"
        hugeicons="SentIcon"
        phosphor="PaperPlaneTiltIcon"
        remixicon="RiSendInsLine"
      />
    ),
    label: "Sent",
    count: 0,
  },
  {
    icon: (
      <IconPlaceholder
        lucide="FileIcon"
        tabler="IconFile"
        hugeicons="FileEmpty02Icon"
        phosphor="FileIcon"
        remixicon="RiFileLine"
      />
    ),
    label: "Drafts",
    count: 3,
  },
  {
    icon: (
      <IconPlaceholder
        lucide="ArchiveIcon"
        tabler="IconArchive"
        hugeicons="Archive02Icon"
        phosphor="ArchiveIcon"
        remixicon="RiArchiveLine"
      />
    ),
    label: "Archive",
    count: 0,
  },
  {
    icon: (
      <IconPlaceholder
        lucide="Trash2Icon"
        tabler="IconTrash"
        hugeicons="Delete02Icon"
        phosphor="TrashIcon"
        remixicon="RiDeleteBinLine"
      />
    ),
    label: "Trash",
    count: 0,
  },
]

export function Pattern() {
  return (
    <div className="mx-auto flex w-full max-w-64 flex-col gap-0.5">
      {menuItems.map((item) => (
        <Item key={item.label} size="xs" render={<a href="#" />}>
          <ItemMedia variant="icon">{item.icon}</ItemMedia>
          <ItemContent>
            <ItemTitle>{item.label}</ItemTitle>
          </ItemContent>
          {item.count > 1 && (
            <ItemActions>
              <Badge variant="success-light" className="rounded-full" size="xs">
                {item.count}
              </Badge>
            </ItemActions>
          )}
        </Item>
      ))}
    </div>
  )
}
```
