import type { Meta, StoryObj } from '@storybook/nextjs' import { useState } from 'react' import TabHeader from '.' import type { ITabHeaderProps } from '.' const items: ITabHeaderProps['items'] = [ { id: 'overview', name: 'Overview' }, { id: 'playground', name: 'Playground' }, { id: 'changelog', name: 'Changelog', extra: New }, { id: 'docs', name: 'Docs', isRight: true }, { id: 'settings', name: 'Settings', isRight: true, disabled: true }, ] const TabHeaderDemo = ({ initialTab = 'overview', }: { initialTab?: string }) => { const [activeTab, setActiveTab] = useState(initialTab) return (
active="{activeTab}"