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
|`strict`| Enables validation rules for all input types in every page of the wizard. The component prevents the user from moving forward unless the errors fixed on the step. |
95
-
|`theme`| Theme object for customized styling |
96
-
|`highlightFieldsOnValidation`| Highlights the fields when the validation fails or succeeds |
97
-
|`pages`| Collection of [Page](#Page) object |
98
-
|`onFinish`| Callback executed on final step. The callback receives an object with the data for each page |
|`strict`| Enables validation rules for all input types on all pages. The component prevents the user from progressing until the errors in the current step have been corrected | false |
95
+
|`theme`|[Theme](#🎨-theme) object for customized styling ||
96
+
|`highlightFieldsOnValidation`| Highlights the fields when the validation fails or succeeds | false |
97
+
|`pages`| Collection of [Page](#Page) object ||
98
+
|`onFinish`| Callback executed on final step ||
99
+
|`RTL`| Enables right to left mode | false |
99
100
100
101
## Page
101
102
102
103
Page object is at the core of the wizard. Page object is used to define the title, description, fields, and validation rules for a page.
| isRequired | Marks the field as required | boolean |
166
-
| validate | Enables validation for the field | boolean |
167
-
| type | Type of Field | InputType |
168
166
| label | Label for the field | string |
167
+
| name | Name of the Field | string |
169
168
| selectOptions | Use this prop when type is "select" | Array |
169
+
| type | Type of Field | InputType |
170
+
| validate | Enables validation for the field | boolean |
170
171
171
172
> Fields marked as required are automatically validated. If you set `isRequired` to `false` and `validate` to `true`, the wizard will validate and flag the errors, but the step itself will not be marked as invalid.
172
173
@@ -244,14 +245,14 @@ Customize the look and feel of the Wizard through the `theme` object.
244
245
| background | Background color of the wizard | string | #f8f8f8 |
245
246
| fail | Colour to signify failed state | string | #de1738 |
246
247
| formFieldBackground | Background color of the Form field | string | #ffffff |
247
-
| primary | Primary colour. This color will be the predominant color | string | #007fff |
248
-
| success | Colour to signify a success state | string | #1db954 |
249
-
| textColor | Colour of all texts | string |#000000|
250
248
| formFieldBorder | Border colour of the form field | string | #dcdcdc |
251
249
| inputBackground | Background color of the native input control | string | #e8e8e8 |
252
250
| inputTextColor | Fore color of the text inside the native input control | string |#000000|
251
+
| primary | Primary colour. This color will be the predominant color | string | #007fff |
252
+
| success | Colour to signify a success state | string | #1db954 |
253
253
| tabColor | Colour of the tab | string | #f8f8f8 |
254
254
| tabLineColor | Colour of the line that runs through all the tabs | string | #ccc |
255
+
| textColor | Colour of all texts | string |#000000|
255
256
256
257
Here is a short example of how to use the theme object.
257
258
@@ -278,6 +279,7 @@ Here is a short example of how to use the theme object.
0 commit comments