wix-style-react
Version:
wix-style-react
33 lines (31 loc) • 1.13 kB
JavaScript
import React from 'react';
import { storiesOf } from '@storybook/react';
import InteractiveCodeExample from 'wix-storybook-utils/InteractiveCodeExample';
import Markdown from 'wix-storybook-utils/Markdown';
import Readme from '../../src/Composite/FieldWithSelectionComposite/README.md';
import ExampleStandard from './ExampleStandard';
import FieldWithSelectionTemplate from './FieldWithSelectionTemplate';
import storySettings from './StorySettings';
storiesOf(storySettings.kind, module).add(storySettings.storyName, function () {
return React.createElement(
'div',
null,
React.createElement(Markdown, { source: Readme }),
React.createElement(
InteractiveCodeExample,
{ title: 'Customize a <FieldWithSelection/>' },
React.createElement(ExampleStandard, null)
),
React.createElement('hr', null),
React.createElement(
'div',
null,
'Field with Dropdown'
),
React.createElement(FieldWithSelectionTemplate, {
dataHook: storySettings.dataHookExampleDropdown,
onChange: function onChange() {},
selectionInput: 'dropdown'
})
);
});