design-infraGitHub
Report a problem or share feedback← Catalog

Card Swipe Deck

curatedtheme-awarefree

smoothui/card-swipe-deck

A CardSwipeDeck component for SmoothUI.

drag — mediumdrop-inPlayfulWarm
$npx shadcn@latest add @smoothui/card-swipe-deck

npm deps: motion

Our notes

Tinder-style swipe deck: drag past a threshold or press ←/→ to commit; Like/Nope stamps and tinted washes fade in with the drag; imperative swipeLeft/swipeRight/reset handle; aria-live announcements; reduced-motion aware. Like uses text-green from SmoothUI's tokens.json, Nope uses text-destructive; the heavy inline card shadow is tuned for light backgrounds. Labels are props. Hosted demo supplies original artwork, explicit pass/keep/reset controls and a visible result.
Source
SmoothUI
Kind
component
Categories
card
Use as
drop-in — replaces your component
Applies to
carouselcard
Motion
on drag · medium · motion · medium cost · respects reduced motion
Tags
spring, complexity-medium
Licence
MIT ("MIT License — Copyright (c) 2024 Eduardo Calvo", github.com/educlopez/smoothui).
Live demo
Interactive preview
Docs
smoothui.dev