import React from 'react'; import { Meta, Story } from '@storybook/react'; import Tabs, { ITabsProps } from './Tabs'; import RadioGroup from '../RadioGroup/RadioGroup'; import Button from '../Button/Button'; import SearchField from '../SearchField/SearchField'; export default { title: 'Navigation/Tabs', component: Tabs, parameters: { docs: { description: { component: Tabs.peek.description, }, }, }, } as Meta; /* Title As Prop */ export const TitleAsProp: Story = (args) => { return (
One content Two content Three content Four content
); }; /* Title As Child */ export const TitleAsChild: Story = (args) => { return (
One One content Two Two content Three Three content Four Four content
); }; /* Complex Title As Child */ export const ComplexTitleAsChild: Story = (args) => { const titleThree = ( Captain America Iron Man Thor ); const tabStyle = { height: '100px', width: '200px', }; return (
One
One content
Two
Line Two
Two content
{titleThree} Three content Four Four content
); }; /* Tab As Prop */ export const TabAsProp: Story = (args) => { return (
); }; /* Full Width */ export const FullWidth: Story = (args) => { return (
One One content Two Two content Three Three content
); }; /* Variable Width */ export const VariableWidth: Story = (args) => { const tabStyle = { width: '100px' }; return (
One One content Two Two content Three Three content
); }; /* Progression */ export const Progression: Story = (args) => { return (
One content Two content Three content Disabled Content Four content
); }; /* Progression Variable Width */ export const ProgressionVariableWidth = (args) => { const tabStyle = { width: '100px' }; return (
One content Two content Three content Disabled Content Four content
); }; /* With Count */ export const WithCount: Story = (args) => { return (

Static Width

One One content Two Two content Three Three content Four Four content Five Five content

Variable Width

One One content Two Two content Three Three content Four Four content
); }; /* 10 Floating */ export const Floating: Story = (args) => { return (
One One content Two Two content Three Three content Three Three content
); };