Swipe Deck

Decide by flinging cards: LIKE / NOPE stamps fade in as you lean; velocity throws count.

  • Zero dependencies
  • React + Tailwind
  • Accessible
  • Reduced-motion aware
Open in v0

Preview

Animated · Full motion: idle animation, physics and effects. animated (default)

Drag past the threshold or flick fast to throw the card with spin; the next card scales up from the stack. Buttons and ← → for everyone else.

Installation

$ npx shadcn@latest add https://pickui.guetix.com/r/swipe-deck.json

Uses the shadcn CLI. It creates components/pickui/swipe-deck.tsx and installs nothing else.

Usage

example.tsx
import { SwipeDeck } from "@/components/pickui/swipe-deck";

export default function Example() {
  return <SwipeDeck />;
}
Product discoveryOnboarding preferencesDating / travel apps

Props

PropTypeDefaultDescription
cards{ id; title; subtitle?; gradient?; emoji? }[]—Cards.
onSwipe(card, dir) => void—Decision handler.
animatedbooleantruefalse = the calm “Regular” version (no idle or ambient motion).

Accessibility

  • Like / Nope buttons; arrow keys; last decision announced.