On this page:

Textarea

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

States

Preview

index.tsx
Error message

Preview

index.tsx
Error message

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Alternative

Preview

index.tsx
Error message

Preview

index.tsx
Error message

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Design Tokens for Textarea

Note: Textarea uses the same design tokens as the Input component. See Input documentation for available tokens.


Textarea API Reference

<Textarea />

PropTypeDefaultDescription
valuestringControlled value
defaultValuestringUncontrolled initial value
onChangefunction (event)Callback when value changes
placeholderstringPlaceholder text
rowsnumber2Number of visible text lines
maxLengthnumberMaximum number of characters
isClearablebooleanfalseShow clear button
clearBtnTextstring"Clear"Text for clear button
isErrorbooleanError state
errorMessagestringError message to display
disabledbooleanfalseDisables the textarea
readOnlybooleanfalseMakes textarea read-only
themestring"default"Visual theme
wrapperPropsobjectProps for wrapper element
...textareanative textarea propsInherits all native textarea props

Note: Textarea inherits all props from Input and the native textarea element. See Input documentation for full details on available props and tokens.