Radio
Controlled mutually exclusive choice for standalone state or single-selection SelectionGroup ownership.
Radio represents one mutually exclusive choice. It supports two ownership modes: a standalone controlled boolean, or a value owned by a single-selection SelectionGroup.
Usage
Standalone state is controlled by the consumer:
import { Radio } from "react-native-arc-ui";
const [checked, setChecked] = useState(true);
<Radio checked={checked} onCheckedChange={setChecked}>
Balanced
</Radio>;checked is required in standalone mode. Radio never keeps a hidden semantic checked state.
SelectionGroup ownership
Inside SelectionGroup, pass value instead of checked:
const [plan, setPlan] = useState<string | null>("monthly");
<SelectionGroup value={plan} onValueChange={setPlan}>
<Radio value="monthly">Monthly</Radio>
<Radio value="annual">Annual</Radio>
</SelectionGroup>;Use null when no value is selected. Radio supports single-selection groups only; placing it inside SelectionGroup multiple is an invalid semantic combination and ARCUI rejects it clearly.

Child callback in grouped mode
onCheckedChange remains optional in grouped mode. It is a child-level notification after the group resolves an actual requested state change; SelectionGroup still owns selection.
<Radio
value="annual"
onCheckedChange={(checked) => {
console.log("Annual requested state:", checked);
}}
>
Annual
</Radio>Content
String/textual content receives ARCUI typography and participates in the component's accessibility-label fallback:
<Radio checked={checked} onCheckedChange={setChecked}>
Motion
</Radio>Arbitrary React content is rendered as consumer-owned content. For custom content, provide an explicit accessibilityLabel when the accessible name cannot be derived from text.
States
Disabled
Native disabled is the fully disabled semantic state:
<Radio checked disabled>
Unavailable
</Radio>ARCUI sets native radio semantics and exposes accessibilityState.disabled.
Inactive
active={false} keeps the dedicated inactive presentation while preventing interaction:
<Radio checked={false} active={false}>
Visible but inactive
</Radio>Use disabled when the control is semantically disabled. Use active={false} when the design needs ARCUI's inactive state while keeping that distinction explicit.
Validation
<Radio
checked={false}
onCheckedChange={setChecked}
error="Choose one option"
>
Required option
</Radio>A non-empty error enables the error visual state and renders an alert row. The error is exposed with alert semantics rather than being folded into the radio's selected state.

Size
size controls the outer radio diameter before ARCUI font scaling:
<Radio checked size={28}>
Larger radio
</Radio>The inner dot preserves the configured token ratio relative to the outer ring. Invalid per-instance sizes degrade to tokens.sizings.radio.size; invalid design-system radio geometry is treated as a configuration invariant and fails clearly.
Press feedback
animation uses the shared ARCUI press-feedback contract and falls back to tokens.pressAnimation.type:
<Radio checked={checked} onCheckedChange={setChecked} animation="scaleDown">
Scale on press
</Radio>onPress, onPressIn, and onPressOut remain available from PressableProps. ARCUI coordinates those callbacks with its own selection and press lifecycle.
Native surface
Radio inherits the safe PressableProps surface after ARCUI reserves role/checked/disabled semantics. style, accessibility overrides, responder callbacks, and other normal Pressable escape hatches remain available where they do not conflict with the component contract.
Testing
With testID="plan-radio", ARCUI exposes stable identifiers:
plan-radio
plan-radio-ring
plan-radio-dot
plan-radio-label
plan-radio-error-row
plan-radio-errorOnly descendants that are actually rendered exist. Prefer semantic queries first and use these identifiers when deterministic automation needs them.
For provider setup and react-native-arc-ui/testing, see Testing.
API Reference
Standalone Radio
Also inherits: Omit<
PressableProps,
"children" | "role" | "accessibilityRole" | "aria-checked" | "aria-disabled"
>
| Prop | Type | Default | Description |
|---|---|---|---|
| children? | ReactNode | — | Optional Radio content. Textual content receives ARCUI typography and accessibility handling. Custom React content is rendered as-is. |
| onCheckedChange? | (checked: boolean) => void | — | Called when the checked state is requested to change. Standalone: the consumer owns checked and should update it when appropriate. SelectionGroup: optional child-level notification after the group resolves an actual state change. SelectionGroup remains the state owner. |
| colors? | Readonly<IRadioColors> | — | — |
| animation? | TPressAnimation | — | Press feedback behavior. Falls back to tokens.pressAnimation.type. |
| active? | boolean | true | Whether the Radio is active. Inactive keeps its dedicated visual state while preventing interaction. |
| size? | number | — | Outer Radio diameter before ARCUI font scaling. Falls back to tokens.sizings.radio.size. |
| error? | string | — | Optional validation message. |
| textStyle? | StyleProp<TextStyle> | — | Style applied only to textual Radio content. |
| checked | boolean | required | Standalone semantic state. The consumer is the source of truth. |
Grouped Radio
Also inherits: Omit<
PressableProps,
"children" | "role" | "accessibilityRole" | "aria-checked" | "aria-disabled"
>
| Prop | Type | Default | Description |
|---|---|---|---|
| children? | ReactNode | — | Optional Radio content. Textual content receives ARCUI typography and accessibility handling. Custom React content is rendered as-is. |
| onCheckedChange? | (checked: boolean) => void | — | Called when the checked state is requested to change. Standalone: the consumer owns checked and should update it when appropriate. SelectionGroup: optional child-level notification after the group resolves an actual state change. SelectionGroup remains the state owner. |
| colors? | Readonly<IRadioColors> | — | — |
| animation? | TPressAnimation | — | Press feedback behavior. Falls back to tokens.pressAnimation.type. |
| active? | boolean | true | Whether the Radio is active. Inactive keeps its dedicated visual state while preventing interaction. |
| size? | number | — | Outer Radio diameter before ARCUI font scaling. Falls back to tokens.sizings.radio.size. |
| error? | string | — | Optional validation message. |
| textStyle? | StyleProp<TextStyle> | — | Style applied only to textual Radio content. |
| value | TSelectionValue | required | SelectionGroup identity. Radio supports only single-selection SelectionGroup mode. |
Per-instance color slots: IRadioColors
| Prop | Type | Default | Description |
|---|---|---|---|
| border? | Readonly<{
default?: TThemeColor;
pressed?: TThemeColor;
inactive?: TThemeColor;
disabled?: TThemeColor;
}> | — | — |
| background? | Readonly<{
unchecked?: TThemeColor;
checked?: TThemeColor;
pressed?: TThemeColor;
inactive?: TThemeColor;
disabled?: TThemeColor;
}> | — | — |
| text? | Readonly<{
default?: TThemeColor;
inactive?: TThemeColor;
disabled?: TThemeColor;
}> | — | — |
| error? | TThemeColor | — | Validation color used by the error ring, error icon, and error text. |
Generated from the ARCUI 2.0.0 TypeScript source snapshot. Native inherited props remain available through the referenced React Native surface.
Generated from the ARCUI 2.0.0 TypeScript source snapshot. Native inherited props remain available through the referenced React Native surface.
The discriminated union prevents checked and value from being supplied together in typed code.
Motion
Radio keeps semantic selection in React/group state. Reanimated owns checked, disabled, inactive, error, theme-color, and press-feedback transitions. Error presence uses ARCUI entering/exiting behavior, and Reduced Motion removes non-essential transitions.
See Motion.
Performance
Selection updates happen only when semantic state changes. Continuous press and visual interpolation stay off React state, so holding or releasing a radio does not create frame-by-frame React renders.
Accessibility
The root uses native radio semantics and exposes checked and disabled through accessibility state. Textual children become the default accessible label when possible; consumer accessibilityLabel, accessibilityHint, and compatible accessibilityState additions remain available.
Validation text is exposed separately as an alert. ARCUI does not inject generic gesture instructions.
Theming
Relevant token areas include:
colors.*.radio
sizings.radio
border.radio
typography.radio
radioAnimations
pressAnimation
enteringExiting
animationsSystem-wide changes belong in tokens; size, animation, textStyle, and native style props are instance-level escape hatches.
Try it live
Explore Radio interactively in Expo Snack.

