import { useState } from 'react'; import { PixelTabs } from '../navigation'; import type { TabItem } from '../common'; const ITEMS: TabItem[] = [ { id: 'overview', label: 'Overview', content:

High-level summary of the project.

}, { id: 'activity', label: 'Activity', content:

Recent events and commits.

}, { id: 'settings', label: 'Settings', content:

Configuration for this workspace.

}, ]; export function Default() { return ; } export function Controlled() { const [active, setActive] = useState('activity'); return (

Active tab: {active}

); } export function Vertical() { return ; } export function ManualActivation() { return ( ); } export function Surfaces() { return (
); } const MANY: TabItem[] = Array.from({ length: 9 }, (_, i) => ({ id: `tab-${i + 1}`, label: `Section ${i + 1}`, content:

Contents of section {i + 1}.

, })); export function Scrollable() { return (
); } export function KeepMounted() { return ( ); } export function Compositional() { return ( One Two Three First panel. Second panel. Third panel. ); }