RadioButton

A Radio Button component, should be wrapped inside a RadioGroup

PROPS

namedescriptiontypedefault
valueThe identifier value of the radio button. must be different than other RadioButtons in the same groupunion
selectedWhen using RadioButton without a RadioGroup, use this prop to toggle selectionbool
onPressInvoked when pressing the buttonfunc
disabledWhether the radio button should be disabledbool
colorThe color of the radio buttonstring
sizeThe size of the radio button, affect both width & heightnumber
borderRadiusThe radio button border radiusnumber
labelA label for the radio button descriptionstring
labelStyleLabel styleunion
iconSourceIcon image sourceunion
iconStyleIcon image styleunion
iconOnRightShould the icon be on the right side of the labelboolfalse