UNPKG

wix-style-react

Version:
29 lines (26 loc) 942 B
import React from 'react'; import { storiesOf } from '@storybook/react'; import TabbedView from 'wix-storybook-utils/TabbedView'; import Markdown from 'wix-storybook-utils/Markdown'; import CodeExample from 'wix-storybook-utils/CodeExample'; import Readme from '../../../src/IconWithOptions/README.md'; import ReadmeTestkit from '../../../src/IconWithOptions/README.TESTKIT.md'; import Example from './Example'; import ExampleRaw from '!raw-loader!./Example'; storiesOf('Deprecated', module).add('IconWithOptions', function () { return React.createElement( TabbedView, { tabs: ['API', 'Testkit'] }, React.createElement( 'div', null, React.createElement(Markdown, { source: Readme }), React.createElement( CodeExample, { title: 'Example', code: ExampleRaw }, React.createElement(Example, null) ) ), React.createElement(Markdown, { source: ReadmeTestkit }) ); });