Kinetik UI

Aperture Card

.md

A card closed by a camera-like iris whose blades turn open to reveal the content.

v1.0.0Live on web@shopify/react-native-skiareact-native-gesture-handlerreact-native-reanimatedreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add aperture-card

The CLI copies the source and installs native dependencies with npx expo install, so versions match your Expo SDK. With shadcn: npx shadcn@latest add https://kinetik-ui.dev/r/aperture-card.json

Install manually

  1. Install dependencies
    npx expo install @shopify/react-native-skia react-native-gesture-handler react-native-reanimated react-native-worklets
  2. Copy the source files
    • components/kinetik/aperture-card.tsx
    View source files

Usage

import { ApertureCard } from '@/components/kinetik/aperture-card';

<ApertureCard
  accessibilityLabel="Mystery reward"
  cover={<Text>Tap to open</Text>}
  style={{ height: 280 }}
>
  <Reward />
</ApertureCard>;

Uncontrolled by default: a tap opens and closes the iris. Pass open and onOpenChange to drive it from state, for example after a purchase completes.

When to use

  • Reveals with a little ceremony: rewards, unlocked content, a daily surprise.
  • Camera, photo and media products, where the iris is a natural metaphor.

When not to use

  • Hiding content people need right away. A reveal is a delay.
  • Small cards; the blades need room to read as an aperture.

Notes

  • The revealed content is hidden from screen readers until the card opens.
  • blades takes 5 to 9; odd numbers look most like a real lens.
  • A light tap plays when the aperture finishes opening.

Props

ApertureCardProps

PropTypeDefaultDescription
childrenrequiredReactNode—Content revealed when the aperture opens.
coverReactNode—Shown on the closed blades, e.g. a label or icon.
openboolean—Controlled open state.
defaultOpenbooleanfalseInitial state when uncontrolled. Defaults to false.
onOpenChange(open: boolean) => void—
bladesnumber7Number of iris blades, 5–9. Defaults to 7.
toggleOnPressbooleantrueToggle on tap. Defaults to true.
hapticsbooleantrueA tap when the aperture finishes opening. Defaults to true.
accessibilityLabelstring—Accessible name of the card.
radiusnumber—Corner radius. Defaults to the theme `xl` radius.
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
While opening or closing, two small paths (blades and seams) are rebuilt on the UI thread each frame; nothing runs at rest.
Measured

Pixel 9 emulator, API 35, release build · interaction median 1.05× the system Settings app on the same emulator (indicative only) · no frames drawn at rest · 161 MB app memory

Real-device measurement pending.

Accessibility

Reduced motion
The blades fade out instead of turning.
Screen readers
Button role with expanded state; the hidden content is not exposed until the card is open.
Touch target
The whole card (at least 200 pt tall).

Source files

components/kinetik/aperture-card.tsx is in the Code tab of the preview above.