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/app/pages/renderer/component-api.md
+20-18Lines changed: 20 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,26 +23,19 @@ Each mapper provided in `react-forms` provides a default API for standard compon
23
23
Standard components are:
24
24
<br />
25
25
26
-
Wrapped in formGroup: <br/>
27
-
text field <br/>
28
-
text area <br/>
29
-
select <br/>
30
-
checkbox <br/>
31
-
radio <br/>
32
-
switch <br/>
33
-
timepicker/datepicker <br/>
34
-
<br />
35
-
36
-
Others: <br/>
37
-
subform <br/>
38
-
tab/tab item <br/>
39
-
wizard <br/>
26
+
|Change form state (input fields)|Others|
27
+
|---------------------------------------|------|
28
+
|text field|subform|
29
+
|textarea|tabs/tab item|
30
+
|select|wizard|
31
+
|checkbox|plain text|
32
+
|radio|
33
+
|switch|
34
+
|timepicker/datepicker|
40
35
41
-
# FormGroup wrapped components
36
+
# Form fields components
42
37
43
-
Basic components are wrapped in formGroup. FormGroup provides a standard API to show labels, helper texts, errors, etc.
44
-
45
-
All those components provides a shared group of props:
38
+
Basic components that can change the form state (inputs) share common props. These components are using [useFieldApi](/renderer/component-mapping#usefieldapi) or [FieldProvider](/renderer/component-mapping#fieldprovider) to access the form state.
46
39
47
40
|Prop|Type|Description|
48
41
|----|:--:|----------:|
@@ -190,6 +183,15 @@ Wizard step <br/>
190
183
191
184
<ExampleLinkto='wizard' />
192
185
186
+
## Plain text
187
+
188
+
|Prop|Type|Description|
189
+
|----|:--:|----------:|
190
+
|label|node/string|A text|
191
+
|variant|string|A variant (depends on mappers: html tags)|
0 commit comments