ValidationFormGroup
Leave feedbackHandles 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
Any Paragon component or export may be added to the code example.
invalid message
Any Paragon component or export may be added to the code example.
valid message
Any Paragon component or export may be added to the code example.
with any kind of input
Any Paragon component or export may be added to the code example.
Props API#
- for
stringRequiredId of the form input that the validation is for
- className
stringAdditional classnames for this component
- invalid
boolDetermines if invalid styles / message will be shown
- valid
boolDetermines if invalid styles / message will be shown
- validMessage
nodeMessage to display on valid input
- invalidMessage
nodeMessage to display on invalid input
- helpText
nodeHelp text for the form input
- children
nodeSpecifies contents of the component.
Usage Insights#
ValidationFormGroup
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-account | 20.44.0 | 1 | |
| frontend-app-admin-portal | 20.39.2 | 20 |