import React, { useState } from 'react'; import { Button, Cascader, DatePicker, Form, Input, InputNumber, Mentions, Select, TreeSelect, Segmented, } from 'antd'; import type { FormProps } from 'antd'; const { RangePicker } = DatePicker; const formItemLayout = { labelCol: { xs: { span: 24 }, sm: { span: 6 }, }, wrapperCol: { xs: { span: 24 }, sm: { span: 14 }, }, }; const App: React.FC = () => { const [componentVariant, setComponentVariant] = useState('filled'); const onFormVariantChange = ({ variant }: { variant: FormProps['variant'] }) => { setComponentVariant(variant); }; return (