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
node
RequiredSpecifies contents of the component.
- className
string
Specifies class name to append to the base element.
- hasIcon
bool
DefaulttrueSpecifies 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
node
Specifies icon to show, will only be shown if
hasIcon
prop is set totrue
. - muted
bool
DefaultfalseSpecifies whether to show feedback with muted styling.
Usage Insights#
FormControlFeedback
Project Name | Paragon Version | Instance Count | |
---|---|---|---|
frontend-app-authn | 22.11.2 | 1 | |
frontend-app-learner-dashboard | 22.9.0 | 1 | |
frontend-app-ora-grading | 21.11.3 | 1 |