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
fix: Props should allow ReactNode in certain cases
In order to better provide translatable labels.
In other cases, string | ReactNode was simplified to ReactNode because that type already includes string.
* Sets the contents of the input label. This can be a `string` or any `ReactNode`.
47
47
*/
48
-
inputLabel: string|React.ReactNode;
48
+
inputLabel: React.ReactNode;
49
49
/**
50
50
* Defaults to `true`, but can be set to `false` to visibly hide the `TextInput`'s label. The `inputLabel` should still be set even when hidden for accessibility support.
51
51
*/
52
52
showInputLabel: boolean;
53
53
/**
54
54
* hintContent is text or a ReactNode that is displayed directly under the input with additional information about the expected input.
55
55
*/
56
-
hintContent?: string|React.ReactNode;
56
+
hintContent?: React.ReactNode;
57
57
/**
58
58
* Sets the contents for validation errors. This will be displayed below the input element. Errors are only visible when the `TextInput` appearance is also set to `TextInputAppearance.Error`.
0 commit comments