import React, { useState } from 'react'; import { InfoCircleOutlined } from '@ant-design/icons'; import { Button, Form, Input, Radio } from 'antd'; type RequiredMark = boolean | 'optional'; const App: React.FC = () => { const [form] = Form.useForm(); const [requiredMark, setRequiredMarkType] = useState('optional'); const onRequiredTypeChange = ({ requiredMarkValue }: { requiredMarkValue: RequiredMark }) => { setRequiredMarkType(requiredMarkValue); }; return (
Optional Required Hidden }} >
); }; export default App;