@wix/design-system
Version:
@wix/design-system
20 lines • 693 B
JavaScript
import React from 'react';
import FieldSet from './FieldSet';
import Input from '../Input';
import ToggleSwitch from '../ToggleSwitch';
import InputArea from '../InputArea';
export default {
title: 'FieldSet',
component: FieldSet,
};
const Template = args => (React.createElement("div", { style: { width: '500px' } },
React.createElement(FieldSet, { ...args })));
const commonProps = {
children: [React.createElement(Input, null), React.createElement(ToggleSwitch, { checked: true }), React.createElement(InputArea, null)],
};
export const Basic = Template.bind({});
Basic.args = {
...commonProps,
legend: 'Basic FieldSet',
};
//# sourceMappingURL=FieldSet.story.js.map