Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
React Native docs
NavigationReact Native

Tabs

Switch a controlled native content panel from an accessible tab list.

Public APILumenTabsReact Native

Native example

Use Tabs

Use for two to five peer content views whose panel changes in place. Keep URL history and nested destination navigation in the application router; use Navigation bar for top-level app destinations.

View verified React Native runtime capture
Tabs rendered in the Expo web renderer Lumen playground
Verified runtime captureExpo web renderer
tsx
<LumenTabs
  label="Workspace views"
  options={workspaceTabs}
  value={activeTab}
  onValueChange={setActiveTab}
>
  <WorkspaceTabPanel value={activeTab} />
</LumenTabs>

Reference

Public API

The primary shared and platform-specific options exposed by LumenTabs.

APIValues or typeDefaultDescription
labelStringRequiredNames the tab list for assistive technology.
optionsreadonly LumenSelectionOption[]RequiredProvides stable tab values, short labels, and optional disabled state.
valuestringRequiredStores the active tab.
onValueChange(string) => voidRequiredUpdates controlled tab selection.
childrenNative content viewRequiredRenders the active panel while Lumen owns the tab list and panel relationship.

Native behavior

Design and accessibility

When to use it

Use for two to five peer content views whose panel changes in place. Keep URL history and nested destination navigation in the application router; use Navigation bar for top-level app destinations.

Accessibility

Every tab exposes selected and disabled state, the tab list has a readable name, and the active panel is announced when selection changes.

Shared component

Available on other platforms

Apple / SwiftUIAndroid / Compose
React Native docsNative primitives