Input
Input
is a component used to obtain text input from the user.
If you are not using FormControl
, set aria-label
or aria-labelledby
to Input
.
<Input type="email" aria-label="Email address" />
<VStack gap="sm"><Text as="h3" id="label">Email address</Text><Input type="email" aria-labelledby="label" /></VStack>
ARIA Roles and Attributes
Component | Role and Attributes | Usage |
---|---|---|
Input | 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