RadioGroup
Single-select list of options.
A single-select list of options.
Installation
RadioGroup ships with the library — no separate install.
import { RadioGroup } from 'panelui-native';Usage
<RadioGroup value={plan} onValueChange={setPlan}>
<RadioGroup.Item value="free" label="Free — $0/month" />
<RadioGroup.Item value="pro" label="Pro — $12/month" />
<RadioGroup.Item value="team" label="Team — $36/month" />
</RadioGroup>Composition
<RadioGroup>
<RadioGroup.Item value="…" label="…" />
</RadioGroup>RadioGroup.Item— One option.valueidentifies it,labelis what is shown.
API Reference
RadioGroup
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | — | |
value | string | — | |
onValueChange | (value: string) => void | — | |
disabled | boolean | — |
RadioGroup.Item
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | — | |
value | string | — | |
label | string | — | |
disabled | boolean | — |
Every part also accepts the underlying React Native props (ViewProps or TextProps) and a className for Tailwind utilities.