Components
Radio group
Overview
RadioGroup
is a set of flexible React Native components designed for creating radio buttons.
Light mode
Dark mode
Light mode
Dark mode
Installation
1
First Step
Install the dependencies
2
Second Step
Include RadioGroup.tsx in your project.
3
Third Step
Update the import paths to match your project setup.
API
RadioGroup
defaultValue: string
- The default value of the radio group.
RadioGroupItem
value: boolean
- The value of the button.label?: string (optional)
- The label of the button (rendered as<Text>
).labelClasses?: string (optional)
- The classes for the label.className?: string (optional)
- The classes for the switch.
RadioGroupLabel
value: string
- The value of the label (needs to match the value of the radio group item).className?: string (optional)
- The classes for the label.