Files
helm-dashboard/frontend/src/components/Tabs.stories.tsx
kame de1915e1c2 Migrated Storybook notation from CSF2 to CSF3 (#487)
* Migrate common directory to CSF3 notation

* Migrate InstalledPackages directory to CSF3 notation

* Migrate modal directory to CSF3 notation

* Migrate repository directory to CSF3 notation

* Migrate others components to CSF3 notation

* Fix lint error in repository directory
2023-11-01 18:11:57 +00:00

35 lines
641 B
TypeScript

import { Meta } from "@storybook/react";
import Tabs from "./Tabs";
const meta = {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: "Tabs",
component: Tabs,
} satisfies Meta<typeof Tabs>;
export default meta;
const defaultArgs = {
tabs: [
{
label: "tab1",
content: <div>tab1</div>,
},
{
label: "tab2",
content: <div>tab2</div>,
},
{
label: "tab3",
content: <div>tab3</div>,
},
],
};
export const Default = {
args: defaultArgs,
};