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

PropTypeDescriptionDefault
classNamestringAdditional CSS classes to apply to the Textarea element.-
autosizebooleanResizes 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
showCharCountbooleanSets 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
containerClassNamestringClass name to control the parent div of the Textarea. This is effective only when `showCharCount={true}`.-