# Radio Group — React Native component for Expo

> The dot springs in with a ripple; cards light up and draw a check badge.

Pick one of many. The dot springs in with a ripple, selectable cards light their border and pop a check badge that draws itself, and the grouped iOS-style list draws a tick beside the chosen row.

- Docs: https://expokit.in/docs/components/radio-group
- Tier: Free
- Also called: radio button, option picker, radio cards
- Category: Selection
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: react-native-svg, expo-haptics
- Uses ExpoKit items: kit
- Variants: Default, Horizontal, Cards, Cards Horizontal, Grouped List

## Installation

Run once per project: `npx @expokit/cli@latest init` (shared theme + KitProvider). Then:

```bash
npx @expokit/cli@latest add radio-group
```

The CLI copies the source into your project (you own the code) and installs react-native-svg, expo-haptics.

Import: `import { RadioGroup } from "@/components/ui/radio-group";`

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `options` | `{ value, label, description?, icon?, hint?, disabled? }[]` | — | The choices. `hint` is trailing text such as a price. |
| `value / onValueChange` | `string` | — | Controlled selection (or use defaultValue). |
| `defaultValue` | `string` | — | Initial selection when uncontrolled. |
| `variant` | `"default" \| "card" \| "segmented-list"` | `"default"` | Radio dots, selectable cards or a grouped list with ticks. |
| `direction` | `"vertical" \| "horizontal"` | `"vertical"` | Stack or lay out side by side (cards share the width). |
| `accent` | `string` | `theme accent` | Selected colour. |
| `haptics` | `boolean` | `true` | Selection tick on change. |
| `disabled` | `boolean` | `false` | Disable the whole group (or per option). |
| `style` | `StyleProp<ViewStyle>` | — | Style for the group container (the bordered card in the segmented-list variant). |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## Behaviour & accessibility

- **Touch**: Rows squish on press in the default and card variants, and the default dot has extra hitSlop. Disabled options are dimmed and ignore taps.
- **Motion**: The selected dot pops on a bouncy spring with a ripple ring. Cards tint their border and pop a self-drawing check; the list variant draws a tick.
- **Haptics**: A selection tick plays on each change (haptics, on by default).
- **Screen readers**: The group is a radiogroup and each option a radio with checked and disabled state. Descriptions are read as hints.

## FAQ

### How do I make a radio button in React Native?

Use ExpoKit's Radio Group: run npx @expokit/cli@latest add radio-group in your Expo or React Native project and it copies a ready-made radio button into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.

### Does Radio Group work in Expo Go?

Yes. Radio Group runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg, expo-haptics) are all included in Expo Go.

### How do I add Radio Group to my Expo app?

Run npx @expokit/cli@latest add radio-group in your project. The CLI copies the component's source into your app and installs react-native-svg, expo-haptics, so the code is yours to change.

### Is Radio Group free?

Yes. Radio Group is free: its full source is on this page and the CLI installs it without an account.

### Can I change how Radio Group looks?

Yes. It takes its colours, radius and light / dark mode from useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit component. The code lives in your project, so you can also edit anything directly.

## More

- Live preview, variants and code: https://expokit.in/docs/components/radio-group
- Every ExpoKit component, screen, template and chart: https://expokit.in/llms.txt
- Install commands and props for every free component: https://expokit.in/llms-full.txt
- Pricing: https://expokit.in/pricing
