Radio Group

Radio group for picking one option from a short list, each option a row of a list.

import { RadioGroup } from "@plexui/react-native"

Examples

Overview

With Field

With Field error

Grouped sections

Mark at the start

Platforms

iOS 26Android
Native componentNone: a checkmark list or a menu pickerRadio button
LookThe checkmark of the chosen row, at its end or, as the row's leading, at its startA 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)

API

RadioGroup

PropTypeDefaultDescription
valuestring—The chosen option's value (controlled)
defaultValuestring—The option chosen at first (uncontrolled)
onChange(value: string) => void—Called with the value of the option a person chooses
aria-labelstring—Name of the group for assistive technology
direction"row" | "col""col"Stacks the options, or lays them side by side
disabledbooleanfalseDisables every option
childrenReactNode—RadioGroup.Item elements, or a List of rows holding them
testIDstring—Test id
styleStyleProp<ViewStyle>—Style of the group

RadioGroup.Item

PropTypeDefaultDescription
valuestring—The option's value (required)
childrenReactNode—The label; leave it out for the mark alone, at the end of a list row
descriptionReactNode—Secondary text under the label
disabledbooleanfalseDims 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
longPressLabelstring—The name of the touch and hold for screen readers
orientation"left" | "right""left"Where the mark stands against the label
aria-labelstring—Name of an option without a text label
testIDstring—Test id