Skip to main content
Version: 1.1.0

FieldValidationError

@spartanfx/react v1.1.0


@spartanfx/react / spfx / 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

props

Contains the validation error message to display.

Example

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