import React, { useState } from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import { Button, Form, Input, Radio, Select, Cascader, DatePicker, InputNumber, TreeSelect, Switch, } from 'antd'; const FormExample = () => { const [componentSize, setComponentSize] = useState('default'); const onFormLayoutChange = ({ size }) => { setComponentSize(size); }; return (
Small Default Large
); }; export default { title: 'example/Form', component: Form, // parameters: {}, } as ComponentMeta; // eslint-disable-next-line @typescript-eslint/no-unused-vars const Template: ComponentStory = args => ; export const Demo = Template.bind({});