<FieldMessage
hint="Hint text"
description="Description text"
error="Error message"
warning="Warning message"
id="field-message-1"
/>
FieldMessage Props
Hint text or element to display. Always visible regardless of error or warning state.
error
string | string[] | ReactElement
Error message(s) to display. All error messages use aria-live="assertive". Passing a ReactElement is deprecated; prefer strings.
warning
string | string[] | ReactElement
Warning message(s) to display. All warning messages use aria-live="polite". Passing a ReactElement is deprecated; prefer strings.
Unique identifier to associate with form fields using aria-describedby.
errorMessage
ReactElement | string
deprecated
Use the error prop instead.
errorAriaLive
"off" | "assertive" | "polite"
deprecated
No longer used. Error messages always use aria-live="assertive".