Skip to content

Commit 3949a76

Browse files
committed
Update textarea types file comments
1 parent bb24578 commit 3949a76

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/src/textarea/types.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)