SwipeUI

Cover card

A photo that is the whole card, with the title, subtitle, price and a button placed in the photo's empty space and no scrim by default.

npx @swipeui/cli add cover-card
Variant
Preset
Material
Scheme
Feel
Interactive web demo. Native materials, gestures and system presentation differ on device.

When to use it

  • A campaign or collection hero where the photo carries the message, such as a new season's knitwear.
  • Editorial tiles in a shop or magazine feed with a short title, a price and one action.
  • A featured place, playlist or class where the photo has real empty space for the words.
  • A horizontal carousel of tall photo cards that each open a collection.

When not to use it

  • A product cutout on a coloured card. Product spotlight card is designed for that.
  • Listings people compare by price and rating, such as stays. Listing card puts the details under the photo.
  • Photos with no empty space for text; crop or choose another photo before reaching for the scrim.
  • Text-led content with a source and reading time. A list row or an article layout reads better.

Installation

Installs with a Pro licence

Everything on this page is public except the source. Founder pre-sale opens around 5 January 2027.

Usage

app/collections.tsx
import { router } from 'expo-router';
import { CoverCard } from '@/components/swipeui/card/cover-card';

<CoverCard
  image={require('./assets/lilac.jpg')}
  title="Quiet hours"
  subtitle="Over-ear sound, made calm"
  price="$249"
  contentPlacement="top-start"
  textTone="dark"
  cta={{ label: 'Shop now', onPress: () => router.push('/headphones') }}
/>;

Examples

app/feed.tsx
import { CoverCard } from '@/components/swipeui/card/cover-card';

// A busy photo: light words at the bottom with the optional scrim behind them.
<CoverCard
  image={{ uri: collection.photoUrl }}
  title="Everyday knit"
  subtitle="Soft merino, relaxed fit"
  price="$89"
  scrim
  onPress={() => router.push('/collections/knit')}
/>;
app/classes.tsx
import { CoverCard } from '@/components/swipeui/card/cover-card';
import { Badge } from '@/components/swipeui/ui/badge';
import { Text } from '@/components/swipeui/ui/text';

// Your own content in the photo's top-end corner, cropped to keep the subject in view.
<CoverCard
  image={photo}
  title="Morning flow"
  contentPlacement="top-end"
  imagePosition="left"
  aspectRatio={3 / 4}
>
  <Badge>New</Badge>
  <Text variant="title-2" className="text-right">Morning flow</Text>
</CoverCard>;

Glass appearance

In the preview, choose Glass in the Preset picker. Pass the Pro Glass material into cta.background to style the action pill alone. The photo, text placement and separate action keep their existing behavior.

API reference

CoverCardProps

PropTypeDefaultDescription
imageImageSource—

The photo that is the card. It's cropped to fill the card.

titlestring—

The headline, in bold.

subtitle?string—

A supporting line under the title.

price?string—

A price, exactly as it should read (you format the currency).

cta?CoverCardAction—

A call-to-action pill under the details. It's the card's own action, not a demo control.

contentPlacement?CoverCardPlacement'bottom-start'

Where the details sit on the photo.

textTone?CoverCardTextTone'light'

light text for dark empty space, dark text for light empty space.

scrim?booleanfalse

A soft gradient behind the details for busy photos, drawn from the side they sit on. Off by default: choose photos with real empty space first.

imagePosition?CoverCardImagePosition'center'

Which part of the photo stays in view when it's cropped.

aspectRatio?number4 / 5

The card's width divided by its height.

palette?objectCOVER_CARD_PALETTE

Ink colours for each text tone, and the dark tone's light scrim.

children?ReactNode—

Replaces the title, subtitle, price and button with your own content, in the same place.

onPress?(() => void)—

Opens the item. Without it the card is a static surface (the button still works).

disabled?booleanfalse

Prevents pressing the card and its button, and dims them.

haptics?booleantrue

A light haptic tap when the card or button is pressed.

motion?MotionOverridethe app's feel

Press character for the card and the button.

accessibilityLabel?stringthe title, subtitle and price, joined

What a screen reader announces for the card.

accessibilityHint?string—

Says what pressing the card does, such as "Opens the collection".

className?string—

Classes merged over the card.

style?StyleProp<ViewStyle>—

Native style escape hatch for the card.

testID?string—

Root identifier; parts add -image, -overlay, -content, -scrim and -cta.

Composition and behavior

  • The image is the card: it fills a rounded-sheet frame at aspectRatio (4:5 by default) and is cropped to fit, keeping imagePosition in view.
  • The title, subtitle, price and optional cta button sit in the photo's empty space at contentPlacement. They're placed with flex rows and columns, so start and end follow the reading direction.
  • There's no scrim by default. Choose the placement and textTone that read on the photo; turn on scrim only for busy photos. It runs from the words' side and goes deeper under Reduce Transparency.
  • Without a button the card is one element. With cta the details and the button are separate focus stops, and the button keeps its own press.
  • The photo doesn't follow the app's theme, so the ink and button colours come from palette rather than tokens.

Placement settings

PropDoesDefault
contentPlacementtop-start, top-end, bottom-start, bottom-end or center-startbottom-start
textTonelight words for dark space, dark for light spacelight
scrimA soft gradient behind the words for busy photosfalse
imagePositionWhich part of the photo stays in view when croppedcenter
aspectRatioThe card's width divided by its height4 / 5
paletteInk, button and light-scrim colours per toneCOVER_CARD_PALETTE

Action settings

PropDoesDefault
ctaA pill button under the details, with its own pressnone
onPressMakes the card open somethingnone (static)
childrenReplaces the details in the same spotnone
disabledStops the card and its buttonfalse
hapticsA light tap when the card or button is pressedtrue

Behavior and gestures

  • Set cta.background to add Glass behind the button label while preserving its separate action.
  • With onPress the card presses in slightly with a light haptic and opens the item.
  • cta adds a pill button under the details. It's the card's own action and keeps its own press, separate from the card's.
  • contentPlacement puts the details at top-start, top-end, bottom-start (the default), bottom-end or center-start, using flex so it follows the reading direction.
  • textTone="light" (the default) is for dark empty space and "dark" for light empty space; palette changes the ink and the button colours.
  • scrim adds a soft gradient from the details' side for busy photos; it's off by default. imagePosition chooses which part of the photo stays in view when it's cropped.
  • children replace the default details in the same spot. disabled stops the card and the button; haptics={false} turns off the taps.

Accessibility

  • Without a button the card is one element read as the title, subtitle and price, such as "Everyday knit, Soft merino, $89".
  • With a button the details and the button are separate focus stops; the details still open the card through the activate action.
  • The button is at least 44pt tall; give it an accessibilityLabel when its words need context, such as "Shop the knit collection".
  • The photo is decorative; put what matters in the title or accessibilityLabel.
  • Under Reduce Transparency the scrim goes deeper so the text stays readable. In right-to-left layouts start and end placements mirror.

Motion

  • Uses the press motion role, so it follows your app's feel. Pass motion to tune this one instance.
  • The card and its button scale on the press role, interrupted cleanly if the finger moves away.
  • Under Reduce Motion the card stays still; only the haptic and the action remain.

Performance

  • One image, an optional vector gradient and no animation beyond the press, so carousels stay cheap. Size the photo close to the card's pixel size.

Notes for AI

  • Look at the photo first: place the details where it's emptiest and set textTone to contrast with that area. Don't add a scrim by habit.
  • Use cta for one real action such as Shop now; put navigation on onPress.
  • Pass imagePosition when the subject is off-centre so cropping keeps it in view.
  • Use children for a custom layout such as a badge plus title; contentPlacement still applies.

Compatibility

Runs onSupported
Expo SDK 57Yes
Expo SDK 58Yes
React Native CLI (with Expo modules)Yes
Expo GoYes
iOSYes
AndroidYes

This table describes API support and static bundle checks. Native runtime, device accessibility and bare Uniwind compatibility remain pending.

Related items