# Components Tab: Pill Tabs

Tabs shaped as rounded pills with a filled background on the active one. Ideal for filter bars and segmented controls that toggle between a few short views.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/tabs/pill-tabs
- Collection: [Components](https://www.shadcn-ui-blocks.com/blocks/components), Free tier
- Group: [Tabs](https://www.shadcn-ui-blocks.com/blocks/components/tabs)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/components/tabs/pill-tabs.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-tabs-pill-tabs
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/components-tabs-pill-tabs.json"`.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: tabs
- Installs to: `@/components/blocks/components/tabs/pill-tabs`

## About this block

Pill Tabs renders a horizontal row of rounded triggers followed by a
bordered content panel. Each trigger sits in a muted pill shape, and
clicking one fills it with the primary color while the panel below
swaps to the matching content area with a heading and a short
description. The three demo tabs are Account, Password, and Settings,
arranged left to right with the Account tab active by default.

The trigger row and each panel are fully independent. You can rename
the tabs, add or remove triggers, and rewrite the heading and body copy
inside each panel without affecting the others. The pill shape comes
from the trigger styling, so the same pattern scales cleanly from two
tabs to five or six before wrapping becomes a concern.

## When to use

Reach for this block when you need a compact segmented control that
feels at home in a conversational or assistant interface. AI products
often present a small set of modes, such as Chat, History, and Settings,
where the switcher should feel tactile and easy to read at a glance.
Pill triggers read faster than underline tabs at small sizes and carry
more visual weight than plain text links, making the active state clear
even when the surrounding UI is dense.

A natural flow around it on a Components page:

**Before**

- [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) to show a framed container that
  the tab panel lives inside
- A short heading or introductory paragraph to set the context for
  what the tabs control

**After**

- [Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination) if the active panel
  contains a list that spans multiple pages
- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) to annotate individual tab
  labels with counts or status indicators

## What you can customize

The block adapts to most segmented control needs with straightforward
copy changes:

- **Tab labels.** Swap Account, Password, and Settings for any short
  words that match your product's modes, such as Chat, History, or
  Preferences.
- **Panel content.** Each panel holds a heading and a body paragraph,
  so you can replace the demo text with real instructions, forms, or
  lists without restructuring the layout.
- **Number of tabs.** Add a fourth or fifth trigger and matching panel
  in the same pattern; remove one of the three defaults if your
  context only needs two options.

> Tip: keep each label to one or two short words so the pill row stays
> on a single line and the active state reads clearly at a glance.

## More in Components Tabs

- [Card Tabs](https://www.shadcn-ui-blocks.com/blocks/components/tabs/card-tabs)
- [Gradient Tabs](https://www.shadcn-ui-blocks.com/blocks/components/tabs/gradient-tabs)
- [Icon Tabs](https://www.shadcn-ui-blocks.com/blocks/components/tabs/icon-tabs)
- [Minimal Tabs](https://www.shadcn-ui-blocks.com/blocks/components/tabs/minimal-tabs)
- [Outline Tabs](https://www.shadcn-ui-blocks.com/blocks/components/tabs/outline-tabs)
- [Shadow Tabs](https://www.shadcn-ui-blocks.com/blocks/components/tabs/shadow-tabs)
- [Vertical Tabs](https://www.shadcn-ui-blocks.com/blocks/components/tabs/vertical-tabs)
