byronwade/ui
Application UI

Data display · Application UI

Tabs

A compound tabs component built on Base UI that renders a tabbed interface with optional horizontal or vertical orientation and two list variants (default pill or underline line).

Feature showcase

Installation

Features

  • 7 examples

    Default, Controlled, Disabled, Keep Mounted, Vertical, Vertical With Icons, With Icons.

API

Props

PropTypeDefaultDescription
valueTabsTab.Value | undefined-Controlled active tab value.
defaultValueTabsTab.Value | undefined0Default active tab value for uncontrolled usage.
orientation"horizontal" | "vertical""horizontal"Layout flow direction; vertical stacks the tab list and panels side by side.
onValueChange(value: TabsTab.Value, eventDetails: TabsRoot.ChangeEventDetails) => void-Callback fired when the active tab changes.
classNamestring-Additional CSS class names applied to the root element.

Source and related

FilePath
Componentregistry/ui/tabs.tsx
Default examplecontent/examples/tabs/default.tsx
Controlled examplecontent/examples/tabs/controlled.tsx
Disabled examplecontent/examples/tabs/disabled.tsx
Keep Mounted examplecontent/examples/tabs/keep-mounted.tsx
Vertical examplecontent/examples/tabs/vertical.tsx
Vertical With Icons examplecontent/examples/tabs/vertical-with-icons.tsx
With Icons examplecontent/examples/tabs/with-icons.tsx