Pulse
Pulse

Components

Tabs

Organize sectioned, mutually exclusive content. Built with accessibility (WAI-ARIA roles, Arrow key navigation) in mind.

Playground

Variant

Size

Line Variant (Default)

Account Details

Manage profile information, username, and general account preferences here.

Pill Variant

Account section active (Pill layout).

Sizes

Medium (Default)

Small

Vertical Orientation

Account Details

Manage profile information, username, and general account preferences here.

Arrow Up/Down move focus and selection instead of Left/Right — same single-select roving-tabindex pattern, just re-oriented.

With Icons

Disabled Tabs

Props

PropTypeDefaultDescription
tabsTabItem[]—List of tab items with id, label, and optional icon or disabled flag.
activeTabstring—The id of the currently active tab.
onChange(id: string) => void—Callback function triggered when a tab is clicked or selected.
variant"line" | "pill""line"Visual style of the tab headers.
size"sm" | "md""md"Sizing variant controlling paddings and margins.
orientation"horizontal" | "vertical""horizontal"Vertical stacks the tab list in a rail and switches Arrow key navigation to Up/Down — for settings-style layouts.

Usage Guidelines

When to use

  • Use to divide content on the same page into related, mutually exclusive sections a user only needs one of at a time.

When not to use

  • Don't use Tabs as a substitute for real navigation between different pages/routes — each tab's content should stay conceptually on the same page.
  • Don't hide content a user needs to compare side-by-side behind separate tabs.

Usage