Skip to main content
Version: 1.0.0

FieldValidationError

@spartanfx/react v1.0.0


@spartanfx/react / FieldValidationError

Variable: FieldValidationError

const FieldValidationError: React.FunctionComponent<IFieldValidationError>

Displays a validation error message for a form field.

This component is typically used below form controls to show field-level validation feedback. It only renders content when errorMessage is non-empty.

Param

Contains the validation error message to display.

Example

<FieldValidationError errorMessage={formContext.validation.getErrorMessage('Title')} />