import type { Meta, StoryObj } from '@storybook/react' import { useState } from 'react' import { Tabs, TabList, Tab, TabPanel } from './Tabs' const meta: Meta = { title: 'Atoms/Tabs', component: Tabs, tags: ['autodocs'], parameters: { layout: 'padded' }, } export default meta type Story = StoryObj const BasicTemplate = () => { const [value, setValue] = useState('tab1') return ( Overview Details History Overview content goes here. Details content goes here. History content goes here. ) } export const Default: Story = { render: () => , } const WithIconsTemplate = () => { const [value, setValue] = useState('status') const StatusIcon = () => ( ) const DetailsIcon = () => ( ) return ( }>Status }>Details Disabled Status panel content. Details panel content. ) } export const WithIcons: Story = { name: 'With icons', render: () => , } const ManyTabsTemplate = () => { const [value, setValue] = useState('tab1') return ( {Array.from({ length: 8 }, (_, i) => ( Tab {i + 1} ))} {Array.from({ length: 8 }, (_, i) => ( Content for tab {i + 1} ))} ) } export const ManyTabs: Story = { name: 'Many tabs', render: () => , }