ONONC

Swipe Deck

A draggable card deck you fling left or right, with keyboard and button controls.

motiondraga11y
Drag a card sideways, or use the Left and Right arrow keys to pass or keep it.

Aurora

Northern drift

CalmGradient

Customize

Deck

Loop deck
Cards behind2

Motion

Swipe tilt18°

Overlay

Keep / Pass stamps
Control buttons

Props

PropTypeDefaultDescription
itemsSwipeCardItem[]gradient setCards to deal, front to back ({ id, title, subtitle?, background?, tags? }).
loopbooleantrueRecycle swiped cards to the back so the deck never empties.
swipeRotationnumber18Max tilt (deg) as the front card is dragged sideways.
stackDepthnumber2How many cards peek behind the front one (1–3).
showStampsbooleantrueShow the Keep/Pass stamps that fade in as you drag.
showControlsbooleantrueShow the circular Pass/Keep buttons below the deck.
onSwipe(id, direction) => voidFires when a card leaves the deck, with its swipe direction.
labelstring"Swipeable card deck"Accessible name for the deck.