Skip to content
nexubDesign System
v2.4.0

Components · Navigation

Tabs

StableSince v0.0.1

Layered content panels switched by tab triggers. Built on Radix UI Tabs.

import { Tabs } from '@nexub/react';

Usage

Use it for
  • Switching between related views within the same page context

  • Organising content that belongs to the same entity

  • Reducing visual clutter by hiding secondary content behind tabs

  • Horizontal navigation within a bounded section

Use something else for
  • Global site navigation — use the sidebar or top nav

  • Sequential steps in order — use StepIndicator

  • Comparing content side-by-side — keep both views visible

  • More than 5–7 tabs — consider a Select or sub-navigation

Examples

Default

Props

Props
PropTypeDefaultDescription
defaultValuestring—Initially active tab value (uncontrolled).
valuestring—Controlled active tab value.
onValueChange(value: string) => void—Callback when active tab changes.
orientation'horizontal' | 'vertical''horizontal'Layout direction of the tab list.

On iOS & Android