The Form component manages data collection, validation, and submission. It uses Form.Item to wrap form fields (input controls, select menus, etc.).
Layout Options:
horizontal (default): Label and control are arranged horizontally.vertical: Label and control are arranged vertically.inline: Form items are arranged in a single horizontal line.
Usage Pattern:
Wrap your input components with <Form.Item />. For automatic generation of help, required, and validateStatus, ensure each Form.Item contains exactly one child that has been registered via getFieldDecorator.
<Form layout="vertical">
<Form.Item label="Username">
{/* The child here must be decorated with getFieldDecorator */}
<Input />
</Form.Item>
</Form>