This component will be removed soon.
Replaced by Input and ValidationFormGroup
TextArea
minimal usage#
<TextAreaname="name"label="First Name"value="Foo Bar"/>
scrollable#
<TextAreaname="name"label="Information"value="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."/>
validation#
<TextAreaname="username"label="Username"description="The unique name that identifies you throughout the site."validator={value => {let feedback = { isValid: true };if (value.length < 3) {feedback = {isValid: false,validationMessage: 'Username must be at least 3 characters in length.',};}return feedback;}}/>
label as element#
<TextAreaname="username"label={<span lang="en">Element</span>}value="Label is wrapped in language span"/>