import React from "react"; import { Meta, StoryFn } from "@storybook/react"; import { Tabs, TabTitle } from "./../../../"; export default { title: "Components/Tabs", component: Tabs, argTypes: { /* NOTE: we currently cannot support this because Blueprint set then !important styles prevent tab background colors. animate: { description: "Whether the selected tab indicator should animate its movement.", control: "boolean", table: { defaultValue: { summary: true }, type: { summary: "boolean" }, } }, */ }, } as Meta; const TemplateFull: StoryFn = (args) => ; export const TabsContainerUncontrolled = TemplateFull.bind({}); TabsContainerUncontrolled.args = { id: "storytabs1", tabs: [ { id: "storytab1", title: "Tab title 1", panel:
Tab content 1
, }, { id: "storytab2", title: , panel:
Tab content 2
, }, { id: "storytab3", title: , panel:
Tab content 3
, }, ], }; /* FIXME: this integration does currently not work, reason is not clear. See Tab component comments at bottom. export const UncontrolledElementsUsage = TemplateFull.bind({}); UncontrolledElementsUsage.args = { id: "storytabs2", children: [ Tab content 1} /> ] }; */