React Native · Components
Card
Surface grouping content: title, description, content and footer.
Live example
The preview runs in the browser with the web component; the native component takes the same props and looks the same on iOS and Android.
Preview
Create account
Card content goes here.
Effects (hover over them)
Lift
Hover or Tab into it.
Border color
Hover or Tab into it.
Spinning light
Hover or Tab into it.
Pointer light
Hover or Tab into it.
3D tilt
Hover or Tab into it.
Shine
Hover or Tab into it.
Tilt + light
Like a platform, the side the pointer presses goes down.
Selected plan
Always on, even without a mouse.
Custom color
Accent color via a CSS variable.
Appearances
outline
Content
elevated
Content
filled
Content
ghost
Content
gradient
Content
glass
Content
dashed
Content
Code
Events
- Events appear here when you interact with the preview.
Import
Card
componentSurface grouping content: title, description, content and footer. Same spacing (24 px padding, theme radius + 4), variants and effects as web's Card. The surface is drawn by View; defaults are given via appearance.defaults.card.
Examples
CardVariant
typeCard variant (same names and colors as web's Card variant).
outline: bordered surface (default).elevated: with a pronounced shadow.filled: borderless, muted background.ghost: no background or border; layout only.dashed: dashed border, no background.gradient: a gradient from the accent color (tone) into the card.glass: translucent glass surface (no blur; seeSurfaceVariant).
Names added via appearance.variants.card can also be given.
CardProps
interfaceProps of Card.
Extends: ViewProps
| Name | Type | Default | Description |
|---|---|---|---|
ref? | Ref<ViewRef> | Ref of the underlying native element. | |
title? | ReactNode | Title. | |
description? | ReactNode | Description below the title. | |
footer? | ReactNode | Footer (action buttons). | |
icon? | IconProp | Icon to the left of the title (in a square box with a muted background). | |
action? | ReactNode | Action on the right of the title row (e.g. a small button or menu). | |
variant? | CardVariant | (string & {}) | "outline" | Variant. Defaults to appearance.defaults.card.variant, otherwise "outline". |
tone? | Tone | "primary" | Accent color: the color of effects and the gradient variant. |
effect? | EffectProp | Effect or effects ("lift", ["tilt", "glow"], "beam"…). See BuiltinEffect. Defaults to appearance.defaults.card.effect; otherwise "scale" when onPress is given. | |
active? | boolean | false | Keeps effects on permanently (selected plan, featured card). |
onPress? | (event: GestureResponderEvent) => void | When given, the card becomes pressable (like a list item). | |
style? | StyleProp<ViewStyle> | Container style. |