Skip to Content
Navigation & Menus@hacline/ui/tabs

Tabs

Switch between related content panels.

Usage

Click a tab or use the arrow keys to switch content. Pass the same value to TabsTab and TabsPanel to connect them.

Design handoff is scheduled for this week.

Manually Activated Vertical Tabs

The Up and Down arrow keys move focus only; press Enter or Space to switch the active panel.

Showing 32 records.

Parts

PartDescriptionExtended Props
TabsIndicator
Marks the selected tab. Its box comes from the --active-tab-* variables, measured from the tab list.—
TabsList
The row of tabs, a tablist with one tab stop and arrow keys between its tabs.
variant
TabsPanel
The content of the tab with the same value, shown while that tab is selected.—
TabsTab
A tab. Selecting it shows the panel with the same value.
size
TabsTabIcon
An icon inside a tab. A tab with only an icon needs an aria-label. Screen readers skip it, and mirror flips it in right-to-left text.—

Props

Prop

Type

View parts and state attributes in UI SDK.