GitHub

Card Swiper

llms.txt

Example

Usage

		
<div class="h-[70vh] w-full">
	<CardSwiper
		cardData={(i) => ({
			title: `Card ${i}`,
			description: `Card ${i} description`,
			image: profiles[i % profiles.length]
		})}
	></CardSwiper>
</div>

API Reference

CardSwiper

A Tinder-style swipeable card stack with touch and keyboard support.

Property
cardData
card
onswipe
swipe
minSwipeDistance
minSwipeVelocity
arrowKeys
thresholdPassed
anchor
rotate
cardCount