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 { Button } from "@/components/ui/button";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 |
|---|---|---|
| variant Solid primary / accent / secondary / danger fill, bordered outline, transparent ghost, tinted soft, underlined link, two-tone gradient, accent with a coloured glow, or a raised elevated surface. | "primary" | "accent" | "secondary" | "outline" | "ghost" | "soft" | "destructive" | "link" | "gradient" | "glow" | "elevated" | "primary" |
| size 36 / 46 / 54pt, or a round icon button. | "sm" | "md" | "lg" | "icon" | "md" |
| loading Spinner + blocks presses. | boolean | false |
| left / right Icons beside the label. | ReactNode | — |
| block Stretches to the parent's width (alignSelf: stretch). | boolean | false |
| pill Fully rounded. | boolean | false |
| color Any colour; recolours every tinted variant and picks readable text automatically. | string | theme accent |
| gradientTo Second stop for variant="gradient". | string | color shifted 38° on the hue wheel |
| haptics Light tap on press. | boolean | false |
| textStyle Style for the label text (merged over size and variant typography). | StyleProp<TextStyle> | — |
| style Style for the outer animated wrapper (margins, alignment); the pressable surface keeps its own. | StyleProp<ViewStyle> | — |
| className Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. | string | — |
| …PressableProps onPress, disabled, … |
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=… — "primary" | "accent" | "secondary" | "outline" | "ghost" | "soft" | "destructive" | "link" | "gradient" | "glow" | "elevated".
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- variant
- "primary" | "accent" | "secondary" | "outline" | "ghost" | "soft" | "destructive" | "link" | "gradient" | "glow" | "elevated" · default "primary"Solid primary / accent / secondary / danger fill, bordered outline, transparent ghost, tinted soft, underlined link, two-tone gradient, accent with a coloured glow, or a raised elevated surface.
- size
- "sm" | "md" | "lg" | "icon" · default "md"36 / 46 / 54pt, or a round icon button.
- color
- string · default theme accentAny colour; recolours every tinted variant and picks readable text automatically.
- textStyle
- StyleProp<TextStyle>Style for the label text (merged over size and variant typography).
- style
- StyleProp<ViewStyle>Style for the outer animated wrapper (margins, alignment); the pressable surface keeps its own.
- 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
- Scales down with a spring on press-in and bounces back on release. loading swaps the label for a spinner and blocks presses.
- Haptics
- Opt-in light impact on press with haptics; off by default.
- Screen readers
- A button with disabled and busy state.
Source
FAQ
How do I make a custom button in React Native?
npx @expokit/cli@latest add button in your Expo or React Native project and it copies a ready-made custom button into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.Does Button work in Expo Go?
react-native-svg, expo-haptics) are all included in Expo Go.How do I add Button to my Expo app?
npx @expokit/cli@latest add button 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 Button free?
Can I change how Button 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.