import React, { useState } from 'react'; import { Button, Form, Input, Radio } from 'antd'; type LayoutType = Parameters[0]['layout']; const App: React.FC = () => { const [form] = Form.useForm(); const [formLayout, setFormLayout] = useState('horizontal'); const onFormLayoutChange = ({ layout }: { layout: LayoutType }) => { setFormLayout(layout); }; return (
Horizontal Vertical Inline
); }; export default App;