--- order: 0 title: zh-CN: 基本使用 en-US: Basic Usage --- ## zh-CN 基本的表单数据域控制展示,包含布局、初始化、验证、提交。 ## en-US Basic Form data control. Includes layout, initial values, validation and submit. ```tsx import { Form, Input, Button, Checkbox } from 'antd'; const layout = { labelCol: { span: 8 }, wrapperCol: { span: 16 }, }; const tailLayout = { wrapperCol: { offset: 8, span: 16 }, }; const Demo = () => { const onFinish = values => { console.log('Success:', values); }; const onFinishFailed = errorInfo => { console.log('Failed:', errorInfo); }; return (
Remember me
); }; ReactDOM.render(, mountNode); ```