import { withKnobs, boolean, number, text } from "@storybook/addon-knobs"; import Component from "./Tabs.Story.svelte"; export default { title: "Tabs", decorators: [withKnobs] }; export const Default = () => ({ Component, props: { tabProps: { disabled: boolean("Disabled (disabled in )", false), href: text("The href for tab (href in )", "#"), role: text("ARIA role (role in )", "presentation"), tabindex: text("Tab index (tabindex in )", "0"), }, tabsProps: { className: "some-class", selected: number("The index of the selected tab (selected in )", 1), triggerHref: text( "The href of trigger button for narrow mode (triggerHref in )", "#" ), role: text("ARIA role (role in )", "navigation"), iconDescription: text( "The description of the trigger icon for narrow mode (iconDescription in )", "show menu options" ), tabContentClassName: text( "The className for the child `` components", "tab-content" ), }, }, }); export const Container = () => ({ Component, props: { story: "container", tabProps: { disabled: boolean("Disabled (disabled in )", false), href: text("The href for tab (href in )", "#"), role: text("ARIA role (role in )", "presentation"), tabindex: text("Tab index (tabindex in )", "0"), }, }, }); export const Skeleton = () => ({ Component, props: { story: "skeleton" } });