Tabs

navigation

Tab navigation with an animated underline indicator, full keyboard navigation, and an optional vertical layout.

import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/forge'

Preview

Tabs

Compose pages from accessible primitives.

Code Example

Props

PropTypeDefaultRequiredDescription
defaultValuestring-NoInitially active tab value
valuestring-NoControlled active tab value
onValueChange(value: string) => void-NoCallback when active tab changes
orientation'horizontal' | 'vertical''horizontal'NoLayout direction

Variants

horizontalvertical

Accessibility

  • Uses Radix Tabs - full keyboard navigation (Arrow keys, Home, End)
  • Active tab has aria-selected="true"
  • Tab panels use role="tabpanel"

Related Components