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
Textarea grows automatically based on the content, but you can also set a min and max height to
@@ -92,6 +99,7 @@ You can use the `value` and `onValueChange` properties to control the input valu
92
99
> **Note**: NextUI `Textarea` also supports native events like `onChange`, useful for form libraries
93
100
> such as [Formik](https://formik.org/) and [React Hook Form](https://react-hook-form.com/).
94
101
102
+
95
103
## Slots
96
104
97
105
-**base**: Input wrapper, it handles alignment, placement, and general appearance.
@@ -100,6 +108,7 @@ You can use the `value` and `onValueChange` properties to control the input valu
100
108
-**input**: The textarea input element.
101
109
-**description**: The description of the textarea.
102
110
-**errorMessage**: The error message of the textarea.
111
+
-**headerWrapper**: Wraps the `label` and the `clearButton`.
103
112
104
113
<Spacery={4} />
105
114
@@ -163,6 +172,7 @@ You can use the `value` and `onValueChange` properties to control the input valu
163
172
| isRequired |`boolean`| Whether user input is required on the textarea before form submission. |`false`|
164
173
| isReadOnly |`boolean`| Whether the textarea can be selected but not changed by the user. ||
165
174
| isDisabled |`boolean`| Whether the textarea is disabled. |`false`|
175
+
| isClearable |`boolean`| Whether the textarea should have a clear button. |`false`|
166
176
| isInvalid |`boolean`| Whether the textarea is invalid. |`false`|
167
177
| validationState |`valid`\|`invalid`| Whether the textarea should display its "valid" or "invalid" visual styling. (**Deprecated**) use **isInvalid** instead. | - |
168
178
| disableAutosize |`boolean`| Whether the textarea auto vertically resize should be disabled. |`false`|
0 commit comments