Textarea
A form control that only allows multi line data entry.
Installation
Install
yarn add @iag/chroma-react-ui.components
Import
import { Textarea } from '@iag/chroma-react-ui.components';
Accessibility
Accessibility documentation(opens in new window)Default
Custom height
Disabled
Error
Valid
Properties
Name
Description
- classNamestringAdditional CSS classes to be applied
- disabledbooleanBoolean indicating if the textarea is disabled
- errorbooleanBoolean indicating if the textarea is in an error state
- idstringHTML id attribute for the Textarea
- namestringHTML name attribute for the textarea
- onChange(event: ChangeEvent<HTMLTextAreaElement>) => voidFunction to be called when the textarea value changes
- placeholderstringThe textarea placeholder
- validbooleanBoolean indicating if the textarea is in a valid state
- valuestringThe textarea value
- spellCheckbooleanBoolean indicating if the textarea should have spellcheck turned on