Form.Control.Feedback
Alias: Form.Text
Provide help text or validation feedback to the user about about a form control.
Form.Control.Feedback uses a FormGroupContext (provided by Form.Group) to
ensure that it has a unique id and that that id is added to a related
Form.Control via aria-describedby according to WCAG guidelines.
Note: Form.Control.Feedback is aliased as Form.Text for backward compatibility for
those using the React Bootstrap component.
Basic usage
Any Paragon component or export may be added to the code example.
Feedback Types
Any Paragon component or export may be added to the code example.
Theme Variables#
| CSS Variable | Computed Value |
|---|---|
| | |
| | |
| | |
| | |
| | |
Props API#
- children
nodeRequiredSpecifies contents of the component.
- className
stringSpecifies class name to append to the base element.
- hasIcon
boolDefaulttrueSpecifies whether to show an icon next to the text.
- type
enum'default' | 'valid' | 'invalid' | 'warning' | 'criteria-empty' | 'criteria-valid' | 'criteria-invalid'Specifies feedback type, this affects styling.
- icon
nodeSpecifies icon to show, will only be shown if
hasIconprop is set totrue. - muted
boolDefaultfalseSpecifies whether to show feedback with muted styling.
Usage Insights#
FormControlFeedback
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-authn | 23.16.0 | 1 | |
| frontend-app-discussions | 23.16.0 | 1 | |
| frontend-app-learner-record | 23.4.5 | 1 |