Docs
Textarea
Textarea
Displays a form textarea or a component that looks like a textarea.
0 / 100
Usage
Example Code
1import { Textarea } from "inc-design-system/textarea";
Example Code
1<Textarea />
Props
Textarea
Prop | Type | Description | Default |
---|---|---|---|
className | string | Additional CSS classes to apply to the Textarea element. | - |
autosize | boolean | Resizes the Textarea height automatically based on text content if true. Note: The auto resize triggers onChange, so it may not work properly if the Textarea has a default value (e.g., `<Textarea value='Some huge text' />`) or if a placeholder is used. Default is false. | false |
showCharCount | boolean | Sets whether to show or hide the character count, which will be displayed below the Textarea on the right. This can be used with the maxLength property, which will show as char_count/maxLength. Default is false. | false |
containerClassName | string | Class name to control the parent div of the Textarea. This is effective only when `showCharCount={true}`. | - |