FieldError
Forms

FieldError.

Consistent accessible validation message.

Real interactive component
Live demo

The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.

Props & API reference

Parameters available in the shared component, including value types, requirements and accepted options.

3 props
ParameterTypeRequiredDefaultPossible valuesDescription
childrenReactNodeYes——Validation error text.
idstringNo——Identifier for linking to a field's aria-describedby.
classNamestringNo——Additional CSS class on the outer component element.