TextArea
minimal usage
Show editable code example
Any Paragon component or export may be added to the code example.
<TextAreaname="name"label="First Name"value="Foo Bar"/>
scrollable
Show editable code example
Any Paragon component or export may be added to the code example.
<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
Show editable code example
Any Paragon component or export may be added to the code example.
<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
Show editable code example
Any Paragon component or export may be added to the code example.
<TextAreaname="username"label={<span lang="en">Element</span>}value="Label is wrapped in language span"/>
Usage Insights#
TextArea
Project Name | Paragon Version | Instance Count | |
---|---|---|---|
edx-platform | 2.6.4 | 4 | |
frontend-app-publisher | 20.28.5 | 1 | |
studio-frontend | 3.4.8 | 1 |