import React, { useState } from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import { Button, Form, Input, Radio, Select, Cascader, DatePicker, InputNumber, TreeSelect, Switch, } from 'antd'; import { SizeType } from 'antd/lib/config-provider/SizeContext'; const FormExample = () => { const [componentSize, setComponentSize] = useState('default'); const onFormLayoutChange = ({ size }) => { setComponentSize(size); }; return (