Tabs

A component that displays tabbed content.

In this guide, you'll learn how to use the Tabs component.

Was this example helpful?

Usage#

Code
import { Tabs } from "@medusajs/ui"
Code
1<Tabs>2  <Tabs.List>3    <Tabs.Trigger value="1">Tab 1</Tabs.Trigger>4    <Tabs.Trigger value="2">Tab 2</Tabs.Trigger>5    <Tabs.Trigger value="3">Tab 3</Tabs.Trigger>6  </Tabs.List>7  <Tabs.Content value="1">Panel 1</Tabs.Content>8  <Tabs.Content value="2">Panel 2</Tabs.Content>9  <Tabs.Content value="3">Panel 3</Tabs.Content>10</Tabs>

API Reference#


Examples#

Controlled Tabs#

Was this example helpful?

Tabs with a Disabled Tab#

Was this example helpful?

Tabs with Icons#

Was this example helpful?

Vertical Tabs#

The orientation prop doesn't change the layout of the tabs, but it allows you to navigate between the tabs using the up and down arrow keys. You'll need to manually style the tabs vertically.

Was this guide helpful?
Ask Bloom
For assistance in your development, use Claude Code Plugins or Medusa MCP server in Cursor, VSCode, etc...FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break