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
Copy file name to clipboardExpand all lines: packages/react-renderer-demo/src/docs-components/component-api.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,16 @@ import ExampleLink from './component-api/exampleLink';
3
3
4
4
### Components API
5
5
6
+
### Common props for all form fields
7
+
8
+
There is very short list of that can be applied to every form field
9
+
10
+
|Prop|Type|Description|
11
+
|----|:--:|----------:|
12
+
|name|string|Unique field identifier. Value of this field will be under same key|
13
+
|component|string|Component identifier from formFieldsMapper. Rendered component is chosen by this value|
14
+
|hideField|boolean|Equivalent to html attribute `hidden`. Hides the field but it remains in DOM. Note that the field is still impacted by the form state. Validation will still apply on hidden field but the error message will not be displayed.|
15
+
6
16
Each mapper provided in `react-forms` provides a default API for standard components. Standard components are:
0 commit comments