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 { Checkbox } from "@/components/ui/checkbox";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 |
|---|---|---|
| checked / onChange Controlled state (or use defaultChecked). | boolean | — |
| defaultChecked Initial state when uncontrolled. | boolean | false |
| label Text next to the box. | string | — |
| description Secondary line. | string | — |
| strike Strike the label through when checked. | boolean | false |
| shape Rounded square (corner = size / 3.4) or full circle. | "square" | "circle" | "square" |
| size Box width and height in points; the tick is 80% of it. | number | 24 |
| accent Checked colour. | string | theme accent |
| disabled Dims to 50% and blocks presses. | boolean | false |
| style Style for the pressable row holding the box and label. | 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
Use the variant chips on the preview to switch examples; each maps to a demo you can copy from the Code tab.
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- size
- number · default 24Box width and height in points; the tick is 80% of it.
- accent
- string · default theme accentChecked colour.
- style
- StyleProp<ViewStyle>Style for the pressable row holding the box and label.
- 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
- The whole row toggles. The box squishes on press-in and bounces back on release.
- Motion
- The fill and tick spring in together, and a ring bursts outward each time it becomes checked.
- Screen readers
- A checkbox with checked and disabled state.
Source
FAQ
How do I make an animated checkbox in React Native?
npx @expokit/cli@latest add checkbox in your Expo or React Native project and it copies a ready-made animated checkbox into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.Does Checkbox work in Expo Go?
react-native-svg) are all included in Expo Go.How do I add Checkbox to my Expo app?
npx @expokit/cli@latest add checkbox in your project. The CLI copies the component's source into your app and installs react-native-svg, so the code is yours to change.Is Checkbox free?
Can I change how Checkbox 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.