import type { StoryMeta, Story } from '@admin/sections/ComponentPreviewArea/consts'; import Tabs from './index'; export default { title: 'Components/Tabs', description: 'Tabbed navigation component with URL updating support', } as StoryMeta; export const BasicTabs: Story = () => ( General content here, }, { name: 'advanced', title: 'Advanced', renderingEl:
Advanced content here
, }, ]} /> ); BasicTabs.meta = { title: 'Basic Tabs', description: 'Two simple tabs with basic content', }; export const WithDefaultTab: Story = () => ( General content, }, { name: 'advanced', title: 'Advanced', renderingEl:
Advanced content (default)
, }, ]} defaultTab="advanced" /> ); WithDefaultTab.meta = { title: 'With Default Tab', description: 'Tabs with the second tab active by default', }; export const ManyTabs: Story = () => ( Content 1 }, { name: 'tab2', title: 'Tab 2', renderingEl:
Content 2
}, { name: 'tab3', title: 'Tab 3', renderingEl:
Content 3
}, { name: 'tab4', title: 'Tab 4', renderingEl:
Content 4
}, { name: 'tab5', title: 'Tab 5', renderingEl:
Content 5
}, ]} /> ); ManyTabs.meta = { title: 'Many Tabs', description: 'Component with multiple tabs to test overflow behavior', };