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 { Card } from "@/components/ui/card";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 Surface style. Glass is translucent with a light edge — place it over colour or imagery. | "default" | "outline" | "elevated" | "default" |
| onPress / onLongPress Makes the card a button with a spring press. | (e) => void | — |
| pressable Spring press without an onPress. | boolean | false |
| highlight Radial glow that tracks the finger, or an accent border that glows in. | "none" | "spotlight" | "border" | "none" |
| accent Highlight colour. | string | theme accent |
| padding Inner padding. | number | 18 |
| gap Space between sections. | number | 14 |
| disabled Dims and blocks presses. | boolean | false |
| Card.Header action Element pinned to the header's top-right. | ReactNode | — |
| Card.Title / Description numberOfLines Clamp the text to this many lines with an ellipsis. | number | — |
| Card.Content / Footer Plain section view / bottom row of actions (row, 10pt gap); `style` overrides either. | { children, style? } | — |
| Card.Media source / height Full-bleed image; place it first. | ImageSource / number | — / 168 |
| style Style for the card surface (merged after the variant background, border and radius). | 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" | "outline" | "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
- "default" | "outline" | "elevated" · default "default"Surface style. Glass is translucent with a light edge — place it over colour or imagery.
- accent
- string · default theme accentHighlight colour.
- style
- StyleProp<ViewStyle>Style for the card surface (merged after the variant background, border and radius).
- 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
- With onPress, onLongPress or pressable it scales down with a spring and bounces back on release.
- Motion
- highlight="spotlight" springs in a soft glow under your finger; highlight="border" fades in a glowing accent ring.
- Screen readers
- Becomes a button with disabled state when it has onPress or onLongPress. Card.Title is a header.
- Web
- Shows a pointer cursor when it has onPress.
Source
FAQ
How do I make a card view in React Native?
npx @expokit/cli@latest add card in your Expo or React Native project and it copies a ready-made card view into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.Does Card work in Expo Go?
react-native-svg) are all included in Expo Go.How do I add Card to my Expo app?
npx @expokit/cli@latest add card 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 Card free?
Can I change how Card 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.