Components

Tabs

The indicator flows like liquid: its leading edge races ahead, the trailing edge catches up, and it settles with a wobble.

Paste it into ChatGPT, Claude, Cursor or v0.
variant

Usage

React
import { Tabs } from '@vizzele/react';

<Tabs
  label="Billing"
  items={[
    { value: 'monthly', label: 'Monthly', content: <Monthly /> },
    { value: 'yearly', label: 'Yearly', content: <Yearly /> },
  ]}
/>

Props

PropTypeDefaultDescription
itemsTabItem[]—{ value, label, content?, disabled? }
value / defaultValue / onValueChangestring—Controlled or uncontrolled.
variant'pill' | 'underline''pill'Indicator style.
labelstring—Accessible name for the tab list.

Accessibility

  • WAI-ARIA tabs pattern: roving tabindex, ←/→, Home/End, aria-selected and aria-controls.