Skip to content
Menu

Cards

Swipe photo stack

Swipe photo stack: A pile of photo cards where the top one can be flung left or right, sending it to the back as the stack shuffles forward.

Using Swipe photo stack

Swipe photo stack uses the card preview frame with a dark theme setting.

Customize the preview

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

ControlTypeDefaultPreview limits
peeknumber12From 0 to 32; step 2
rotationnumber4From 0 to 12; step 1
thresholdnumber100From 40 to 220; step 10
accentcolor#9BE15DNo additional limit in the metadata.
Which frameworks are available for Swipe photo stack?

Swipe photo stack is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

What does Swipe photo stack depend on?

The React metadata lists these npm dependencies beyond React: motion.

What accessibility details are visible in Swipe photo stack?

The React source for Swipe photo stack includes: attributes and handlers (aria-hidden, aria-label, onKeyDown, tabIndex); explicit roles (group); key comparisons (ArrowLeft, ArrowRight). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Swipe photo stack handle reduced motion?

Swipe photo stack reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: reduceMotion ? fade : dragOpacity; reduceMotion ? { duration: 0 } : { type: "spring", stiffness: 300, damping: 28 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components