import { Meta, Preview, Props, Story } from "@storybook/addon-docs/blocks";
import { boolean, number } from "@storybook/addon-knobs";
import Tab from "../../Tab";
import TabBar from "../../TabBar";
import StorybookContainer from "../../../shared/StorybookContainer";

<Meta title="Tab Bar" />

# Tab Bar

## Demo
<Preview>
<Story name="Demo" parameters={{ options:{showPanel:true}}}>
    {{
        components: {TabBar, Tab },
    props: {
      initialSelectedTab: {
        default: number("Initial Selected Tab", 0),
      },
      full: {
        default: boolean("Full width", false),
      },
      disabled: {
        default: boolean("Disabled", false),
      },
    },
    template: `
      <TabBar :initialSelectedTab="initialSelectedTab" :full="full">
        <Tab title="One" :disabled="disabled">
          <div style="padding: 8px 16px; max-width: 540px;">
            <h1>First Tab</h1>
            <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</p>
          </div>
        </Tab>
        <Tab title="Two" :disabled="disabled">
          <div style="padding: 8px 16px; max-width: 540px;">
            <h1>Second Tab</h1>
            <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</p>
          </div>
        </Tab>
        <Tab title="Three" :disabled="disabled">
          <div style="padding: 8px 16px; max-width: 540px;">
            <h1>Third Tab</h1>
            <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</p>
          </div>
        </Tab>
      </TabBar>
  `
  ,
    }}
</Story>
</Preview>

## Props

<Props of={TabBar} />
