# Components Tab: Gradient Tabs

Tabs with a soft color gradient on the active trigger for a vivid accent. Use them on landing pages or feature views where the switcher should draw the eye.

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

## Install

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

## Depends on

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

## About this block

Gradient Tabs is a three-tab switcher in a single row. The tab list sits
on a soft pastel band that runs blue through purple to pink, and each
trigger picks up its own color pair when active: blue-to-purple for
Account, purple-to-pink for Password, and pink-to-red for Settings. The
active trigger fills with that color pair in white text so the selection
is unmistakable. Below the list, the matching content panel has a light
tinted background that echoes the active trigger's palette, with a
heading and a short descriptive sentence inside a bordered card.

The tab labels, panel copy, and the number of tabs are all independent.
You can swap in any section names that fit your product, replace the
placeholder paragraphs with forms or detail content, and add or remove
tabs without affecting the layout structure.

## When to use

Reach for this pattern when a user profile or settings area needs a
visible, engaging switcher that signals interactivity without relying on
plain underlines. In a healthcare scheduling product it works well on a
patient portal screen where sections like Appointments, Prescriptions,
and Billing each need a clear visual boundary. It is a stronger choice
than [Minimal Tabs](https://www.shadcn-ui-blocks.com/blocks/components/tabs/minimal-tabs) when the page
has few other visual elements and the switcher needs to anchor the
layout, and a lighter choice than [Card Tabs](https://www.shadcn-ui-blocks.com/blocks/components/tabs/card-tabs)
when you want color rather than raised depth.

A natural flow around it on a Components page:

**Before**

- A short page header or summary card to give the switcher context
- [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) to introduce a feature set before
  diving into its detail sections

**After**

- [Accordions](https://www.shadcn-ui-blocks.com/blocks/components/accordions) for deeper content that
  expands within a single panel
- [Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination) if each tab panel lists
  records that need paging controls

## What you can display

Each tab panel is an open container, so the content is entirely up to
you. A few practical fits:

- **Patient and appointment detail.** Drop appointment summaries,
  upcoming visit cards, or prescription history into each panel so
  users move between related clinical sections without leaving the page.
- **Account and credential management.** Use the Account and Password
  tabs as presented, with real form fields, to handle profile edits and
  security updates in one place.
- **Segmented feature previews.** Show a different product capability
  under each tab on a landing or feature page where color contrast
  helps each section feel distinct.

> Tip: keep each panel's content to roughly the same height so the
> page does not jump as users switch tabs.

## More in Components Tabs

- [Card Tabs](https://www.shadcn-ui-blocks.com/blocks/components/tabs/card-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)
