Theme

npm_versionnpm Paragon package page

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 VariableComputed Value










Props API#

FormRadio Props API
  • id string

    Specifies id of the FormRadio component.

  • children node Required

    Specifies 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

    Specifies whether to display component in invalid state, this affects styling.

    Defaultfalse
  • isValid bool

    Specifies whether to display component in valid state, this affects styling.

    Defaultfalse
  • disabled bool

    Specifies whether the FormRadio is disabled.

    Defaultfalse
FormRadioSet Props API
  • children node Required

    Specifies contents of the component.

  • className string

    A class name to append to the base element.

  • name string Required

    Specifies name for the component.

  • value string

    Specifies values for the FormRadioSet.

  • defaultValue string

    Specifies default values.

  • isInline bool

    Specifies whether the component should be displayed with inline styling.

    Defaultfalse
  • onChange func

    Specifies onChange event handler.

  • onFocus func

    Specifies onFocus event handler.

  • onBlur func

    Specifies onBlur event handler.

Usage Insights#

FormRadio

Project NameParagon VersionInstance Count
frontend-app-account22.10.02
frontend-app-admin-portal21.13.18
frontend-app-course-authoring22.8.123
proctoring22.8.14
teams22.8.11
xpert_unit_summary22.8.12
frontend-app-discussions22.7.03
frontend-app-learner-dashboard22.9.06
frontend-app-ora-grading21.11.31
frontend-app-support-tools21.13.15
prospectus20.46.24

FormRadioSet

Project NameParagon VersionInstance Count
frontend-app-account22.10.01
frontend-app-admin-portal21.13.15
frontend-app-course-authoring22.8.110
proctoring22.8.12
teams22.8.11
xpert_unit_summary22.8.11
frontend-app-discussions22.7.08
frontend-app-learner-dashboard22.9.03
frontend-app-ora-grading21.11.31
frontend-app-support-tools21.13.15
prospectus20.46.22