Textarea

Displays a form textarea or a component that looks like a textarea.

code
Expend code

#Variant

code
Expend code

#Disabled

code
Expend code

Textarea

A textarea component used for capturing user input.

PropTypeDefaultDescription
classNamestring-Applies additional Tailwind CSS classes to adjust the styling of the textarea.
refReact.RefObject<HTMLTextAreaElement>-Used to pass a reference to the textarea.
disabledbooleanfalseDisables the textarea. When disabled, the cursor will not be displayed.
placeholderstring-Provides a hint to the user about what to input.
valuestring | number | readonly string[]-Sets the current value of the textarea.
onChange(event: React.ChangeEvent<HTMLTextAreaElement>) => voidundefinedCallback function that is called when the value of the textarea changes.