ValidationFormGroup

Handles bootstrap style field validation and handles related aria attributes.

Manages the rendering of bootstrap-style:

  • Help text
  • Valid and invalid feedback

For children of type input, textarea, and select:

  • Appends bootstrap validation class names
  • Appends aria-describedby attributes (for help text and feedback)

basic usage

invalid message

valid message

with any kind of input

ValidationFormGroup Props API
  • for string Required Required

    Id of the form input that the validation is for

  • className string Required

    Additional classnames for this component

  • invalid bool Required

    Determines if invalid styles / message will be shown

  • valid bool Required

    Determines if invalid styles / message will be shown

  • validMessage node Required

    Message to display on valid input

  • invalidMessage node Required

    Message to display on invalid input

  • helpText node Required

    Help text for the form input

  • children node Required