wix-style-react
Version:
wix-style-react
27 lines (25 loc) • 981 B
JavaScript
import React from 'react';
import { storiesOf } from '@storybook/react';
import Markdown from 'wix-storybook-utils/Markdown';
import TabbedView from 'wix-storybook-utils/TabbedView';
import InteractiveCodeExample from 'wix-storybook-utils/InteractiveCodeExample';
import Readme from '../../../src/ButtonWithOptions/README.md';
import ExampleStandardComp from './ButtonWithOptionsStandard';
import ReadmeTestkit from '../../../src/ButtonWithOptions/README.TESTKIT.md';
storiesOf('Deprecated', module).add('ButtonWithOptions', function () {
return React.createElement(
TabbedView,
{ tabs: ['API', 'Testkit'] },
React.createElement(
'div',
null,
React.createElement(Markdown, { source: Readme }),
React.createElement(
InteractiveCodeExample,
{ title: 'Customize a <ButtonWithOptions/>' },
React.createElement(ExampleStandardComp, null)
)
),
React.createElement(Markdown, { source: ReadmeTestkit })
);
});