Prefer the errorText prop when the surrounding component renders the error inline—Input automatically sets aria-invalid and points aria-errormessage at the rendered error node.
Error Message
aria-errormessage
Link error messages explicitly for complex validation.