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-account20.46.32
frontend-app-admin-portal20.46.36
frontend-app-course-authoring21.5.611
frontend-app-discussions20.46.33
frontend-app-learner-dashboard20.46.26
frontend-app-ora-grading20.46.31
frontend-app-support-tools20.46.05
frontend-lib-content-components21.5.65
www20.36.03
prospectus20.46.24

FormRadioSet

Project NameParagon VersionInstance Count
frontend-app-account20.46.31
frontend-app-admin-portal20.46.34
frontend-app-course-authoring21.5.66
frontend-app-discussions20.46.38
frontend-app-learner-dashboard20.46.23
frontend-app-ora-grading20.46.31
frontend-app-support-tools20.46.05
frontend-lib-content-components21.5.63
www20.36.02
prospectus20.46.22