You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ant Design has to be installed seperately. Please follow their [guidelines](https://ant.design/docs/react/introduce#Installation).
23
+
24
+
## ValidateOnMount
25
+
26
+
Ant Design provides an option to validate a field when the component is mounted. Just set `validateOnMount` to `true`.
27
+
28
+
```jsx
29
+
{
30
+
component:'text-field',
31
+
name:'required-field',
32
+
validate: [{type:'required'}],
33
+
validateOnMount:true
34
+
}
35
+
```
36
+
37
+
This field will show the error immediately.
38
+
39
+
## Layout Specification
40
+
41
+
Ant Design provides horizontal and vertical layouts for form. Layout can be specified by passing a `layout` prop to `formTemplate`. By default it is set to `vertical`.
0 commit comments