Textarea
Textarea
is a component used to obtain multi-line text input.
If you are not using FormControl
, set aria-label
or aria-labelledby
to Textarea
.
<Textarea aria-label="Feedback" />
<VStack gap="sm"><Text as="h3" id="label">Feedback</Text><Textarea aria-labelledby="label" /></VStack>
ARIA Roles and Attributes
Component | Role and Attributes | Usage |
---|---|---|
Textarea | aria-invalid | Set to "true" if isInvalid is set. |
aria-disabled | Set to "true" if isDisabled is set. | |
aria-readonly | Set to "true" if isReadOnly is set. | |
aria-required | Set to "true" if isRequired is set. |
Edit this page on GitHub