RadioButton
Radio buttons allows to selection a single option from a list.
import { RadioButton, RadioButtonValue, RadioButtonItem } from "cherag-ui"'
Usage
<RadioButton
btnColor={COLORS.green}
onChange={setSelectedRadio}
selected={selectedRadio}
>
<RadioButtonItem value={1}>Radio button</RadioButtonItem>
<RadioButtonItem value={2}>Radio button</RadioButtonItem>
</RadioButton>
Props
RadioButton Propertics
children
React.ReactNode
Child elements of RadioButton.
onChange
(event: GestureResponderEvent) => void
Change RadioButton item to save value to state elements of RadioButton.
selected
RadioButtonValue
Store selected item.
btnColor
string
Button color of RadioButton.
RadioButtonItem Propertics
children
React.ReactNode
Child elements of RadioButtonItem.
btnColor
string
Button color of RadioButtonItem.
value
RadioButtonValue
Store selected RadioButtonItem value.