import React from 'react'; import { storiesOf } from '@storybook/react'; import { withKnobs, boolean } from '@storybook/addon-knobs/react'; import withReadme from 'storybook-readme/with-readme'; import Readme from './README.md'; import { TabContainer, Text } from 'asc-web-components'; import Section from '../../.storybook/decorators/section'; import { action } from '@storybook/addon-actions'; const array_items = [ { key: "tab0", title: Title1 , content:
}, { key: "tab1", title: Title2 , content:
}, { key: "tab2", title: Title3 , content:
}, { key: "tab3", title: Title4 , content:
}, { key: "tab4", title: Title5 , content:
} ]; storiesOf('Components|TabContainer', module) .addDecorator(withKnobs) .addDecorator(withReadme(Readme)) .add('base', () => { return (
action("Selected item")(index)} isDisabled={boolean('isDisabled', false)} > {array_items}
); });