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.
Prop | Type | Default | Description |
---|---|---|---|
className | string | - | Applies additional Tailwind CSS classes to adjust the styling of the textarea. |
ref | React.RefObject<HTMLTextAreaElement> | - | Used to pass a reference to the textarea. |
disabled | boolean | false | Disables the textarea. When disabled, the cursor will not be displayed. |
placeholder | string | - | Provides a hint to the user about what to input. |
value | string | number | readonly string[] | - | Sets the current value of the textarea. |
onChange | (event: React.ChangeEvent<HTMLTextAreaElement>) => void | undefined | Callback function that is called when the value of the textarea changes. |