Tabs

Tabbed interface with keyboard navigation. Compound component with TabList, Tab, and TabPanel.

Example

Overview content here.

Features content here.

Pricing content here.

Props

NameTypeDefaultRequiredDescription
valuestringNoControlled active tab value
defaultValuestringNoInitial active tab (uncontrolled)
onChange(value: string) => voidNoCalled when active tab changes
orientation'horizontal' | 'vertical''horizontal'NoTab layout direction

Accessibility

  • role="tablist", role="tab", role="tabpanel"
  • aria-selected on active tab
  • Arrow key navigation between tabs
  • Tab panels linked via aria-labelledby

Related Tokens

--tabs-surface--tabs-on-surface--tabs-border--tabs-indicator