import React from 'react'; import { storiesOf } from '@storybook/react'; import { withKnobs, boolean, text, select } from '@storybook/addon-knobs/react'; import { action } from '@storybook/addon-actions'; import withReadme from 'storybook-readme/with-readme'; import Readme from './README.md'; import { Tabs, Text } from 'asc-web-components'; import Section from '../../.storybook/decorators/section'; import { BooleanValue } from 'react-values'; //{text("Body text", "Try again later")} const something_items = [ { id: "0", something_title: {text("Title text", "Title1")} , something_body:
}, { id: "1", something_title: {text("Title text2", "Title2")} , something_body:
}, { id: "2", something_title: {text("Title text3", "Title3")} , something_body:
}, { id: "3", something_title: {text("Title text3", "Title3")} , something_body:
}, { id: "4", something_title: {text("Title text3", "Title3")} , something_body:
} ]; /* const item = [{ id: "0", something_title: {text("Title text", "Title1")} , something_body:
}]; */ storiesOf('Components|Tabs', module) .addDecorator(withKnobs) .addDecorator(withReadme(Readme)) .add('base', () => { return ( {something_items} ); });