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
string
Specifies id of the FormRadio component.
- children
node
RequiredSpecifies contents of the component.
- className
string
Specifies class name to append to the base element.
- controlClassName
string
Specifies class name for control component.
- labelClassName
string
Specifies class name for label component.
- description
node
Specifies description to show under the radio's value.
- isInvalid
bool
DefaultfalseSpecifies whether to display component in invalid state, this affects styling.
- isValid
bool
DefaultfalseSpecifies whether to display component in valid state, this affects styling.
- disabled
bool
DefaultfalseSpecifies whether the
FormRadio
is disabled.
- children
node
RequiredSpecifies contents of the component.
- className
string
A class name to append to the base element.
- name
string
RequiredSpecifies name for the component.
- value
string
Specifies values for the FormRadioSet.
- defaultValue
string
Specifies default values.
- isInline
bool
DefaultfalseSpecifies whether the component should be displayed with inline styling.
- onChange
func
Specifies onChange event handler.
- onFocus
func
Specifies onFocus event handler.
- onBlur
func
Specifies onBlur event handler.
Usage Insights#
FormRadio
Project Name | Paragon Version | Instance Count | |
---|---|---|---|
frontend-app-account | 22.10.0 | 2 | |
frontend-app-admin-portal | 21.13.1 | 8 | |
frontend-app-course-authoring | 22.8.1 | 23 | |
proctoring | 22.8.1 | 4 | |
teams | 22.8.1 | 1 | |
xpert_unit_summary | 22.8.1 | 2 | |
frontend-app-discussions | 22.7.0 | 3 | |
frontend-app-learner-dashboard | 22.9.0 | 6 | |
frontend-app-ora-grading | 21.11.3 | 1 | |
frontend-app-support-tools | 21.13.1 | 5 | |
prospectus | 20.46.2 | 4 |
FormRadioSet
Project Name | Paragon Version | Instance Count | |
---|---|---|---|
frontend-app-account | 22.10.0 | 1 | |
frontend-app-admin-portal | 21.13.1 | 5 | |
frontend-app-course-authoring | 22.8.1 | 10 | |
proctoring | 22.8.1 | 2 | |
teams | 22.8.1 | 1 | |
xpert_unit_summary | 22.8.1 | 1 | |
frontend-app-discussions | 22.7.0 | 8 | |
frontend-app-learner-dashboard | 22.9.0 | 3 | |
frontend-app-ora-grading | 21.11.3 | 1 | |
frontend-app-support-tools | 21.13.1 | 5 | |
prospectus | 20.46.2 | 2 |