errormessage property
Identifies the element that provides an error message for that object
When there is a user-created error, you want to let them know it exists and tell them how to fix it. There are two attributes you need to use: set aria-invalid="true" to define the object as being in an error state, then add the aria-errormessage attribute with the value being the id of the element containing the error message text for that object
See: developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-errormessage
Implementation
@override
@Accessor(key: 'aria-errormessage')
String? get errormessage =>
(props[_$key__errormessage___$AriaPropsMixin] ?? null) as String?;
Identifies the element that provides an error message for that object
When there is a user-created error, you want to let them know it exists and tell them how to fix it. There are two attributes you need to use: set aria-invalid="true" to define the object as being in an error state, then add the aria-errormessage attribute with the value being the id of the element containing the error message text for that object
See: developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-errormessage
Implementation
@override
@Accessor(key: 'aria-errormessage')
set errormessage(String? value) =>
props[_$key__errormessage___$AriaPropsMixin] = value;