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: docs/validations.mdx
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ These states can indicate whether the input is valid or not, and can also preven
23
23
### Validation Redesign
24
24
25
25
Carbon is in the process of implementing a new validation pattern to our input components. To opt into this new pattern, you can set the
26
-
`validationRedesignOptIn` flag to true on the [CarbonProvider](../?path=/docs/carbon-provider--docs).
26
+
`validationRedesignOptIn` flag to true on the [CarbonProvider](../?path=/docs/carbon-provider--docs).
27
27
28
28
The new validation pattern is designed to be more consistent and user-friendly, providing a clearer indication of the input's state and we encourage its use over the legacy pattern using tooltips.
29
29
@@ -64,6 +64,9 @@ Component props that are not supported if the opt-in flag is set to true are lab
64
64
The legacy validation pattern is still available for use, but we recommend using the new validation pattern for a more consistent and user-friendly experience.
65
65
This pattern uses tooltips to provide feedback to users about the state of their input.
66
66
67
+
The `Textbox` component is used below for documentation purposes, but it is recommend to use the new `TextInput` component instead which only uses the new validation pattern
68
+
by default.
69
+
67
70
#### States
68
71
69
72
Each input component that supports validations accepts the following props - `error`, `warning` and `info`.
@@ -117,7 +120,7 @@ For more information on how to use React Hook Form, please refer to the [React H
0 commit comments