mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-26 14:28:04 +00:00
* 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
34 lines
786 B
TypeScript
34 lines
786 B
TypeScript
import { Meta } from "@storybook/react";
|
|
import TabsBar from "./TabsBar";
|
|
|
|
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: "TabsBar",
|
|
component: TabsBar,
|
|
} satisfies Meta<typeof TabsBar>;
|
|
|
|
export default meta;
|
|
|
|
export const Default = {
|
|
args: {
|
|
tabs: [
|
|
{
|
|
name: "tab1",
|
|
component: <div className="w-250 h-250 bg-green-400">tab1</div>,
|
|
},
|
|
{
|
|
name: "tab2",
|
|
component: <div className="w-250 h-250 bg-red-400">tab2</div>,
|
|
},
|
|
{
|
|
name: "tab3",
|
|
component: <div className="w-250 h-250 bg-blue-400">tab3</div>,
|
|
},
|
|
],
|
|
activeTab: "tab1",
|
|
},
|
|
};
|