# form

- 分组：核心组件（Core）
- 页面：/components/form
- 源码：packages/react/src/components/form.tsx

## 导出

```ts
import { Form, FormControl, FormDescription, FormError, FormField, FormItem, FormLabel, FormList, FormMessage, useFormField } from "@modra/react";
```

## Props（FormProps）

| 名称 | 必填 | 类型 | 说明 |
| --- | --- | --- | --- |
| `children` | 否 | `React.ReactNode` |  |
| `layout` | 否 | `FormLayout` |  |
| `labelWidth` | 否 | `string \| number` |  |
| `labelAlign` | 否 | `FormLabelAlign` |  |
| `disabled` | 否 | `boolean` |  |
| `scrollToFirstError` | 否 | `boolean \| FormScrollToFirstErrorOptions` |  |
| `validateMessages` | 否 | `FormValidateMessages` | Templates apply only when RHF/resolver errors have no explicit message. |
