Oros UI

Search documentation

Search Oros UI pages and components.

Tabs

Switches between related views without leaving the page.

Installation

Install Tabs from Oros with shadcn CLI 4.13.0.

pnpm dlx shadcn@4.13.0 add @oros/tabs

Usage

import {
  Tabs,
  TabsList,
  TabsTrigger,
  TabsContent,
} from "@/components/ui/tabs"

Open the Source tab in the preview for a complete working example.

Anatomy

ExportResponsibility
TabsThe root component that owns the primary structure and state.
TabsListA composable part of the component anatomy.
TabsTriggerControls opening, selection, or disclosure behavior.
TabsContentContains the primary visible content.
tabsListVariantsReturns the component's class variants for compatible compositions.

API Reference

Tabs exports 5 named entries. Component exports accept the props of their underlying HTML element or Base UI component, plus an optional className, unless the source defines a more focused type.

  • Tabs Component
  • TabsList Component
  • TabsTrigger Component
  • TabsContent Component
  • tabsListVariants Utility

Accessibility

  • Preserve the native and Base UI keyboard model when composing Tabs; do not replace semantic links or controls with click-only elements.
  • Use concise accessible names, expose the current item when applicable, and verify focus order at both mobile and desktop widths.

Source

Tabs uses the standard shadcn API and is distributed through Oros. Installing it adds the component source and required dependencies to your app. The Source tab above shows a complete usage example.