Theme Playground

Commerce

ProductTabs

Compact tabbed content container for PDPs when the body only needs a small set of parallel sections such as description, specifications, or reviews.

Best for

product detail pagesspecificationsreviews and care content

Import

import { ProductTabs } from "@enadhq/enad-react-sdk/client/storefront"

When to use it

Use ProductTabs when a product detail page only needs a compact tab strip for a few parallel sections such as description, specifications, and reviews.

If the PDP body itself needs a richer long-form rhythm with downloads, shipping notes, care sections, or a clearer post-hero structure, start with ProductDetails instead.

If you need generic tabs outside a product context (account settings, category content), use the base Tabs primitive instead. ProductTabs is specifically styled and structured for PDP use.

Composition notes

ProductTabs is prop-driven, not a compound composition:

  • tabs is an array of tab objects, each with an id (unique string), label (visible tab text), and content (ReactNode panel body).
  • defaultTab sets which tab is active initially. If omitted, the first tab opens.
  • The component renders the tab triggers and panels internally.

Behavior and theming guidance

Tab divider color responds to --enad-border-color and the active tab accent responds to --enad-button-bg, so the tabs integrate with the active theme automatically.

The tab row is horizontally scrollable on narrow screens. Keep the number of tabs between 2 and 5 for scanability. If the page starts needing more sections or mixed section types, move up to ProductDetails instead of stretching the tab pattern too far.

Examples

Live examples you can edit directly in the sandbox.

1 example

Description, specs, reviews

A typical PDP tab set with descriptive content, technical details, and customer review space.

Component Sets

Preview the first example across the available component-set presets to compare tone, spacing, and structural defaults.

Props

PropTypeDefaultDescription
tabsProductTab[]
No description yet.
defaultTabstring
No description yet.
classNamestring
No description yet.