wix-style-react
Version:
wix-style-react
24 lines (20 loc) • 669 B
JavaScript
import React from 'react';
import Collapse from '../src/Collapse';
import FormField from 'wix-style-react/FormField';
import Input from 'wix-style-react/Input';
var exampleChildren = [{ label: 'Simple text', value: 'Lorem perferendis sapiente quas facilis!' }, {
label: 'FormField with Input',
value: React.createElement(
FormField,
{ label: 'Enter your name' },
React.createElement(Input, null)
)
}];
export default {
category: 'Components',
storyName: 'Collapse',
component: Collapse,
componentPath: '../src/Collapse',
componentProps: { children: exampleChildren[0].value, open: true },
exampleProps: { children: exampleChildren }
};