TextArea

VCC UI TextArea is deprecated

Read the documentation on its replacement, which should be used for any new development.

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

NameDescriptionTypeDefault 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<HTMLTextAreaElement>n/a
valueValue of the input. This should be stored in the state of the parent componentstring | (string & readonly string[])``
2024 © Volvo Car Corporation