File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -68,9 +68,12 @@ type Props = {
6868 */
6969 onBlur ?: ( val : { value : string ; error ?: string } ) => void ;
7070 /**
71- * If it is defined, the component will change its appearance, showing
72- * the error below the textarea. If it is not defined, the error
73- * messages will be managed internally, but never displayed on its own.
71+ * If it is a defined value and also a truthy string, the component will
72+ * change its appearance, showing the error below the textarea. If the
73+ * defined value is an empty string, it will reserve a space below the
74+ * component for a future error, but it would not change its look. In
75+ * case of being undefined or null, both the appearance and the space for
76+ * the error message would not be modified.
7477 */
7578 error ?: string ;
7679 /**
You can’t perform that action at this time.
0 commit comments