# Components Tab: Shadow Tabs

Tabs where the selected trigger gains a subtle drop shadow for depth and focus. Works well on cards and panels that need a tactile, layered feel to the switch.

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

## Install

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

## Depends on

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

## About this block

Shadow Tabs is a three-trigger tab switcher laid out in a single equal-width
row. Each trigger sits on a card-like background with a faint drop shadow at
rest. When a trigger is selected it fills with the primary color, its label
flips to the contrasting foreground, and the shadow deepens to give the active
tab a lifted, three-dimensional feel. Below the trigger row, the active panel
renders in a rounded card with its own shadow, showing a section heading and
a short description.

All three triggers and panels are independent. You can rename the labels,
rewrite the panel copy, add a fourth section, or remove one without touching
the shadow behavior. The panel structure is a heading followed by a paragraph,
so you can drop richer content like form fields or data summaries in without
changing the outer shell.

## When to use

Reach for this block when you need a compact switcher that reads as physically
interactive rather than flat. On a logistics and delivery platform it works
well for driver account screens, shipment preferences, and notification
settings, where users move between sections repeatedly and the lifted active
state gives clear feedback about where they are. It fits tighter than a
full sidebar nav and feels more substantial than a plain underline switcher
when the surrounding interface already uses cards and depth.

A natural flow around it on a Components page:

**Before**

- [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) to present summary data that the tabs
  then break into detail views
- A short section heading in plain text to introduce the settings area

**After**

- [Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination) if a panel contains a long
  list that needs to be paged
- [Accordions](https://www.shadcn-ui-blocks.com/blocks/components/accordions) for any panel whose content
  grows long enough to need collapsible subsections

## What you can customize

Each part of the block can be swapped independently to match your interface:

- **Trigger labels.** Replace Account, Password, and Settings with any short
  section names relevant to your product, such as routes, fleet, or billing.
- **Panel content.** The heading and description inside each panel are
  placeholder text; swap them for forms, tables, or summary cards without
  affecting the tab shell.
- **Number of sections.** Add or remove triggers and their matching panels
  as a pair; the grid adjusts the column count automatically.

> Tip: keep trigger labels to one or two words so the shadow depth stays
> visible and the row does not wrap on smaller screens.

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