Cajón Design System
Components

Tabs

Token-driven horizontal tabs with keyboard navigation and baseline non-premium styling.

Behavior

This implementation follows the standard archive preview: underline-active tabs, optional icons, and arrow-key navigation across the tablist.

Usage

import { Tabs } from '@cajon-ui/react';

<Tabs
  aria-label="Dashboard sections"
  items={[
    { value: 'overview', label: 'Overview', content: 'Overview panel' },
    { value: 'analytics', label: 'Analytics', content: 'Analytics panel' },
  ]}
/>

Props

PropTypeDefaultNotes
itemsTabItem[]Ordered tab definitions
defaultValuestringfirst enabled tabInitially selected tab
aria-labelstringAccessible tablist label

On this page