import "./all.js"; import { Meta, StoryObj } from "@storybook/react-vite"; import { TabsLegacy } from "./TabsLegacy.js"; /** * TabsLegacy component. * * You can import this component and use it like: * * ```tsx * import {Tabs} from "@tsed/react-formio/molecules/tabs/TabsLegacy"; * ``` * * TabsLegacy component support DI container and can be used with custom component. Here is the list of components that you can override: * * - Tab * - TabList * - TabPanel * - Tabs * - TabsBody * * ```tsx * function CustomTab() { * * } * * registerComponent("Tab", CustomTab); * ``` */ export default { title: "TabsLegacy", component: TabsLegacy, argTypes: {}, parameters: {}, render: (args: any) => { return (
); } } satisfies Meta; type Story = StoryObj; export const Sandbox: Story = { args: { items: [ { action: "edit", exact: true, icon: "edit", label: "Edit", children:
Edit
}, { action: "submissions", exact: false, icon: "data", label: "Data", children:
Data
}, { action: "preview", exact: true, icon: "test-tube", label: "Preview", children:
Preview
}, { action: "actions", exact: false, icon: "paper-plane", label: "Actions", children:
Actions
}, { action: "access", exact: true, icon: "lock", label: "Access", children:
Access
}, { action: "export", exact: true, icon: "download", label: "Export", children:
Export
}, { action: "delete", exact: true, icon: "trash", label: "Delete", roles: ["administrator", "owner"], children:
Trash
} ] } };