Applies to every preview on the site.
Installation
One command copies the source into your app — you own the code and can change anything.
After you add the file, import it like any local component:
import { RadioGroup } from "@/components/ui/radio-group";Or add it with the CLI (installs any missing peers):
Usage
useKit(). Wrap your app in <KitProvider accent="#6366f1" radius={14}> to re-skin every component at once.Like this? There's a lot more in Pro Pro
12 full screens built from the same kit — install them the same way.
Props
| Prop | Type | Default |
|---|---|---|
| options The choices. `hint` is trailing text such as a price. | { value, label, description?, icon?, hint?, disabled? }[] | — |
| value / onValueChange Controlled selection (or use defaultValue). | string | — |
| defaultValue Initial selection when uncontrolled. | string | — |
| variant Radio dots, selectable cards or a grouped list with ticks. | "default" | "card" | "segmented-list" | "default" |
| direction Stack or lay out side by side (cards share the width). | "vertical" | "horizontal" | "vertical" |
| accent Selected colour. | string | theme accent |
| haptics Selection tick on change. | boolean | true |
| disabled Disable the whole group (or per option). | boolean | false |
| style Style for the group container (the bordered card in the segmented-list variant). | StyleProp<ViewStyle> | — |
| className Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. | string | — |
Customization
You own the source file — tune appearance with props (no fork required for most tweaks). For brand-wide colours and radius, wrap your app in KitProvider; for one-off looks, use the style props below.
Design theme
Open Design theme on the live preview — accent, corner radius and font update every variant instantly (same as KitProvider in your app).
Variants
Pick the Variants chip above the preview, or set variant=… — "default" | "card" | "segmented-list".
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- variant
- "default" | "card" | "segmented-list" · default "default"Radio dots, selectable cards or a grouped list with ticks.
- accent
- string · default theme accentSelected colour.
- style
- StyleProp<ViewStyle>Style for the group container (the bordered card in the segmented-list variant).
- className
- stringTailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.
Map tokens from your design system on Bring your design system or read Theming for KitProvider and NativeWind / Uniwind setup.
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.
Source
FAQ
How do I make a radio button in React Native?
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?
react-native-svg, expo-haptics) are all included in Expo Go.How do I add Radio Group to my Expo app?
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?
Can I change how Radio Group looks?
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.