Form.Radio
A simple radio button for use with Form.RadioSet.
Note: extra props added to this component are passed as attributes to the
underlying input node. See MDN for documentation on available
input attributes.
Controlled Usage
Any Paragon component or export may be added to the code example.
Unlabeled Control
Any Paragon component or export may be added to the code example.
Uncontrolled Usage
Any Paragon component or export may be added to the code example.
Inline layout
Any Paragon component or export may be added to the code example.
Validation
Group Level Validation
Any Paragon component or export may be added to the code example.
Individual option validation
Any Paragon component or export may be added to the code example.
Radio standalone usage
This is supported, but not recommended.
Any Paragon component or export may be added to the code example.
Theme Variables#
| CSS Variable | Computed Value |
|---|---|
| | |
| | |
| | |
| | |
| | |
Props API#
- id
stringSpecifies id of the FormRadio component.
- children
nodeRequiredSpecifies contents of the component.
- className
stringSpecifies class name to append to the base element.
- controlClassName
stringSpecifies class name for control component.
- labelClassName
stringSpecifies class name for label component.
- description
nodeSpecifies description to show under the radio's value.
- isInvalid
boolDefaultfalseSpecifies whether to display component in invalid state, this affects styling.
- isValid
boolDefaultfalseSpecifies whether to display component in valid state, this affects styling.
- disabled
boolDefaultfalseSpecifies whether the
FormRadiois disabled.
- children
nodeRequiredSpecifies contents of the component.
- className
stringA class name to append to the base element.
- name
stringRequiredSpecifies name for the component.
- value
stringSpecifies values for the FormRadioSet.
- defaultValue
stringSpecifies default values.
- isInline
boolDefaultfalseSpecifies whether the component should be displayed with inline styling.
- onChange
funcSpecifies onChange event handler.
- onFocus
funcSpecifies onFocus event handler.
- onBlur
funcSpecifies onBlur event handler.
Usage Insights#
FormRadio
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-account | 20.46.3 | 2 | |
| frontend-app-admin-portal | 20.46.3 | 6 | |
| frontend-app-course-authoring | 21.5.6 | 11 | |
| frontend-app-discussions | 20.46.3 | 3 | |
| frontend-app-learner-dashboard | 20.46.2 | 6 | |
| frontend-app-ora-grading | 20.46.3 | 1 | |
| frontend-app-support-tools | 20.46.0 | 5 | |
| frontend-lib-content-components | 21.5.6 | 5 | |
| www | 20.36.0 | 3 | |
| prospectus | 20.46.2 | 4 |
FormRadioSet
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-account | 20.46.3 | 1 | |
| frontend-app-admin-portal | 20.46.3 | 4 | |
| frontend-app-course-authoring | 21.5.6 | 6 | |
| frontend-app-discussions | 20.46.3 | 8 | |
| frontend-app-learner-dashboard | 20.46.2 | 3 | |
| frontend-app-ora-grading | 20.46.3 | 1 | |
| frontend-app-support-tools | 20.46.0 | 5 | |
| frontend-lib-content-components | 21.5.6 | 3 | |
| www | 20.36.0 | 2 | |
| prospectus | 20.46.2 | 2 |