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
Semantic UI react library is an external dependency and will not be installed with the mapper. Make sure that [Semantic UI react](https://react.semantic-ui.com/usage) is installed in your project.
24
+
25
+
## ValidateOnMount
26
+
27
+
Semantic UI react mapper provides an option to validate a field when the component is mounted. Just set `validateOnMount` to `true`.
28
+
29
+
```jsx
30
+
{
31
+
component:'text-field',
32
+
name:'required-field',
33
+
validate: [{type:'required'}],
34
+
validateOnMount:true
35
+
}
36
+
```
37
+
38
+
This field will show the error immediately.
39
+
40
+
## Components customization
41
+
All components accept all other props described in Semantic UI react documentation. You can find prop names for each component in component definition section of this documentation when the SUIR mapper is selected. You can start by looking at [checkbox example](/component-example/checkbox?mapper=suir).
42
+
43
+
To avoid re-refining common customization for each field in schema, check out the [global component props](/renderer/global-component-props) section.
44
+
45
+
## Contribution
46
+
47
+
You can contribute to this mapper [here](https://github.com/data-driven-forms/react-forms/tree/master/packages/suir-component-mapper).
0 commit comments