TextArea

A simple textarea field

Default example

Invalid state

Labelled with helper and error text

Label, helper and error text to give provide more context and useful hints.

Props - TextArea

Name
Description
Type
Default Value
descriptionRenders a neutral helper message underneath the input.string | undefined``
disabledboolean | undefinedfalse
errorMessageRenders a red error message for validation underneath the input.string | undefined``
idstring | undefinedn/a
isValidRenders the input as valid or invalidboolean | undefinedtrue
labelRenders a label inside the input.ReactNoden/a
loadingboolean | undefinedfalse
namestring | undefinedn/a
onChangeChangeEventHandler<HTMLInputElement> & ChangeEventHandler<HTMLTextAreaElement>n/a
valueValue of the input. This should be stored in the state of the parent componentstring & (string | number | readonly string[] | undefined)``
2022 © Volvo Car Corporation