File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
packages/react-renderer-demo/src Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,14 @@ export const baseExamples = [{
182
182
title : 'Label' ,
183
183
component : 'input' ,
184
184
value : 'Switch' ,
185
+ } , {
186
+ name : 'onText' ,
187
+ title : 'onText' ,
188
+ component : 'input' ,
189
+ } , {
190
+ name : 'offText' ,
191
+ title : 'offText' ,
192
+ component : 'input' ,
185
193
} ,
186
194
] ,
187
195
} ,
Original file line number Diff line number Diff line change @@ -85,6 +85,15 @@ All those components provides a shared group of props:
85
85
86
86
<ExampleLink to =' radio ' />
87
87
88
+ #### Switch
89
+
90
+ | Prop| Type| Description|
91
+ | ----| :--:| ----------:|
92
+ | onText| string| A text which is shown when the switch is on (checked)|
93
+ | offText| string| A text which is shown when the switch is off|
94
+
95
+ <ExampleLink to =' switch-field ' />
96
+
88
97
#### Datepicker
89
98
90
99
This component is using [ react-day-picker] ( https://react-day-picker.js.org/docs/ ) as a base component.
You can’t perform that action at this time.
0 commit comments