# Shadcn Badge Counts

> Tabs with badge counts

- Type: example, free and open source (MIT)
- Component: [Tabs](https://reui.io/components/tabs.md)
- Page: https://reui.io/components/tabs/c-tabs-7
- Docs (Base UI): https://ui.shadcn.com/docs/components/base/tabs.md
- Docs (Radix UI): https://ui.shadcn.com/docs/components/radix/tabs.md
- MCP: `get_example("c-tabs-7")`
- Registry item: https://reui.io/r/styles/base-nova/c-tabs-7.json
- Uses: Badge, Card, Tabs

## Best for

Mail folders on an underlined row, with tinted count badges on Inbox, Drafts and Spam and none on Sent

## Agent notes

- The 12, 3 and 24 counts are literals in each `Badge` and again in the panel text; derive both from your data

## When not to use

- Sections in a side column, each led by an icon and some carrying a count: use [Side List Icons](https://reui.io/components/tabs/c-tabs-8.md) (`get_example("c-tabs-8")`)

## Install

```bash
npx shadcn@latest add @reui/c-tabs-7
```

## About Shadcn Tabs

### When to use

- Account, password and settings forms split into panels so only one shows at a time
- Side navigation inside a page, with sections stacked in a column beside the open panel
- Views of one surface, such as dashboard sections, mail folders or visitor stats by period

### When not to use

- A finished account settings page with workspace, team and billing sections built in: use the [Profile blocks](https://reui.io/blocks/application/profile.md)
- A metric card whose period switch redraws a plotted trend: use the [Line Chart blocks](https://reui.io/blocks/chart/line-chart.md)
- A project header with a breadcrumb on top and a row of sections with avatars below: use the [Navbar blocks](https://reui.io/blocks/application/navbar.md)

### Agent notes

- Only the active `TabsContent` renders in either twin, so other panels ship no server HTML and lose typed values on a switch
- Arrow keys only move focus across `TabsTrigger` items on the base twin, where Enter or Space selects; radix selects on focus

Every ReUI item has a twin like this one; the index is https://reui.io/llms.txt. Agents with the ReUI MCP (https://reui.io/docs/mcp) get the same guidance from the getters named above.
