---
title: "Tabbed Content Module for Sanity + Next.js"
description: "Organize related content into tabs with icons and rich text, ideal for comparing features or use cases."
---

# Tabbed content module

Related content organized into tabs, each with a label, an optional icon, rich text, and call-to-actions.

[View source on GitHub](https://github.com/nuotsu/sanitypress/tree/main/src/modules/tabbed-content) (schema + React component)

## Module fields

| Field | Type | Description |
| --- | --- | --- |
| `eyebrow` | string | Small label shown above the intro. |
| `intro` | Portable Text | Heading and copy, centered above the tabs. |
| `tabs` | array of `tab` | The tabs. See tab fields below. |
| `attributes` | `module-attributes` | Shared by every module: `uid` (HTML id for deep links), `hidden`, and `scopedCss`. |

## Tab fields

| Field | Type | Description |
| --- | --- | --- |
| `label` | string | Tab label. |
| `icon` | image | Optional icon shown beside the label. |
| `content` | Portable Text | Tab panel copy. Supports rich text, images with alt text, and Custom HTML blocks. |
| `ctas` | array of `cta` | Call-to-actions below the panel copy. |

Eyebrow

## Demo: Three tabs

Three tabs, each with its own call-to-action. Tabs stack in a sidebar on desktop and scroll sideways on mobile.

### Tab 1

### Tab 1

Layer related panels behind a row of tabs, packing a lot of information into a compact footprint.

Lorem ipsum dolor sit amet, consectetur adipisicing elit. A, excepturi.

[Action](#)

### Tab 2

### Tab 2

Lorem ipsum dolor sit amet, consectetur adipisicing elit. A, excepturi.

[Action](#)

### Tab 3

### Tab 3

Lorem ipsum dolor sit amet, consectetur adipisicing elit. A, excepturi.

[Action](#)

Frequently Asked Questions

## Tabbed content module FAQ

### When should I use the Tabbed content module?

Use it to pack related information into a compact space: features by audience, plans compared side by side, or use cases by industry. Tabs stack in a sidebar on desktop and scroll sideways on mobile.

### How do I add the Tabbed content module to a page?

In Sanity Studio, open the page, click Add item in its Modules field, and pick Tabbed content. Fill in the fields, check it in the live Presentation preview, and publish. Modules can be reordered by dragging, and the same module can be used on any page as many times as you need.

### How do I customize the Tabbed content module?

Give each tab a label, an optional icon, rich text content (with images and Custom HTML), and its own call-to-actions. Add an eyebrow and intro above the tabs.

Every module also has a Scoped CSS field (plus a uid for deep links and a hidden toggle), so you can restyle one instance without touching the rest of the site. For bigger changes, edit the module's React component and schema in src/modules/tabbed-content in the repo.

Previous module

![Step list module](https://cdn.sanity.io/images/cyu7k2r0/production/310e51748a70170320f0a7043adba8aaeb9c8060-2560x848.png)

[Step list module](/modules/step-list)

Next module

![Breadcrumbs module](https://cdn.sanity.io/images/cyu7k2r0/production/6ae52d92d2879c28331fb355a55f9fcec87e2066-2560x104.png)

[Breadcrumbs module](/modules/breadcrumbs)
