import type { Meta } from "@storybook/react"; import { useState } from "react"; import { FilesIcon, Star } from "lucide-react"; import { Tabs } from "../src/components/Tabs/Tabs"; import { fn } from "@storybook/test"; const meta = { title: "Components/Tabs", component: Tabs, parameters: { layout: "centered", }, tags: ["autodocs"], argTypes: {}, args: { onTabChange: fn() }, } satisfies Meta; export default meta; const Template = (props: { onTabChange: () => void }) => { const [tabIndex, setTabIndex] = useState(0); const onTabChange = (index: number) => { props.onTabChange(); setTabIndex(index); }; return (
, }, { label: "Favorites", Icon: () => , }, ]} />
); }; export const Default = Template.bind({});