Version: 3.0.0-next.37

Radio Button

Migrating to v3 will provide a lot more design, size, color and customisation option.

Overview#

Migrating Checkbox components can broadly described in these points:

  • In v3 Radio can only used along with Radio.Group.
  • Colors of the Checkbox: In v3 the color is controlled by colorScheme prop. And it accepts all the color available in the theme.
  • onPress props is deprecated, instead v3 provides onChange which provides a callback when state of the checkbox change.

Code Comparison#

<Radio selected={true} />