Radio group for picking one option from a short list, each option a row of a list.
import { RadioGroup } from "@plexui/react-native"
| iOS 26 | Android |
|---|
| Native component | None: a checkmark list or a menu picker | Radio button |
| Look | The checkmark of the chosen row, at its end or, as the row's leading, at its start | A 20dp radio button at the row's end, or first in the row as its leading (the text 64dp in, 64dp rows with a description) |
| Prop | Type | Default | Description |
|---|
value | string | — | The chosen option's value (controlled) |
defaultValue | string | — | The option chosen at first (uncontrolled) |
onChange | (value: string) => void | — | Called with the value of the option a person chooses |
aria-label | string | — | Name of the group for assistive technology |
direction | "row" | "col" | "col" | Stacks the options, or lays them side by side |
disabled | boolean | false | Disables every option |
children | ReactNode | — | RadioGroup.Item elements, or a List of rows holding them |
testID | string | — | Test id |
style | StyleProp<ViewStyle> | — | Style of the group |
| Prop | Type | Default | Description |
|---|
value | string | — | The option's value (required) |
children | ReactNode | — | The label; leave it out for the mark alone, at the end of a list row |
description | ReactNode | — | Secondary text under the label |
disabled | boolean | false | Dims the option and takes no presses |
onLongPress | () => void | — | A touch and hold on the option (half a second), also a named action for screen readers |
longPressLabel | string | — | The name of the touch and hold for screen readers |
orientation | "left" | "right" | "left" | Where the mark stands against the label |
aria-label | string | — | Name of an option without a text label |
testID | string | — | Test id |