# Components Tab: Card Tabs

Tabs styled as raised cards, where the active panel lifts above the rest. Great for settings pages or dashboards that group related content into sections.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/tabs/card-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/card-tabs.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-tabs-card-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-card-tabs.json"`.

## Depends on

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

## About this block

Card Tabs is a three-trigger tab switcher centered on the page. The trigger
strip sits inside a bordered, rounded container with a soft shadow. Each
trigger occupies one equal column of a three-column grid, and the active
trigger lifts out of the strip by gaining its own background and a subtle
shadow. Below the strip, the active panel renders in its own bordered card
with a heading and a short description.

The trigger labels, panel headings, and body copy are all independent, so
you can rename each tab and rewrite the content beneath it without touching
the layout. The three-column grid is the demo default; add or remove
triggers as your sections require, and the strip will redistribute the
columns automatically.

## When to use

Reach for this block when a settings or account screen needs to separate a
handful of distinct sections and each section has its own form or content
area. In a fintech or banking product it works well for grouping Account
details, Security credentials, and Notification preferences so users can
navigate without scrolling through one long page. The raised-card treatment
gives the active selection a tactile, clearly selected feel that is more
prominent than a plain underline tab but less decorative than a gradient or
pill style.

A natural flow around it on a Components page:

**Before**

- [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) to establish the visual language of
  bordered surfaces before the tabs introduce their own card panels
- A short account page header or page title to orient the user

**After**

- [Accordions](https://www.shadcn-ui-blocks.com/blocks/components/accordions) for deeper sections inside a
  panel that need their own collapsible structure
- [Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons) for save or submit actions that sit
  below the active panel content

## What you can customize

The block frames any grouped settings content that benefits from card
surfaces. A few common fits:

- **Account and security sections.** Place profile fields under one tab,
  password fields under another, and notification toggles under a third so
  each area stays focused.
- **Transaction categories.** Use tabs to split recent activity, scheduled
  payments, and saved payees into separate panels on a banking dashboard.
- **Onboarding steps.** Walk a new user through connection, verification,
  and preferences one panel at a time using the card borders to frame
  each step clearly.

> Tip: keep tab labels to one or two short words so the three-column strip
> stays balanced and nothing wraps at narrow widths.

## More in Components 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)
- [Pill Tabs](https://www.shadcn-ui-blocks.com/blocks/components/tabs/pill-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)
