An interactive card stack component with smooth animations. Cards can be tossed away or returned to the stack with realistic physics. Perfect for testimonials, product showcases, or any content that benefits from a tactile card-flipping experience.
npm install @thomarket/card-stackimport CardStack from '@thomarket/card-stack';
// Basic testimonial mode (default)
<CardStack type="testimonial" />
// Product mode with infinite loop
<CardStack type="product" infinite={true} />
// Finite mode (cards get tossed away)
<CardStack type="testimonial" infinite={false} />
// With custom cards
const customTestimonials = [
{
id: 1,
name: "john doe",
role: "frontend developer",
content: "Amazing component with smooth animations!",
company: "tech corp"
},
// ... more cards
];
<CardStack
cards={customTestimonials}
type="testimonial"
infinite={true}
className="my-custom-styles"
/>
// Custom product cards
const customProducts = [
{
id: 1,
name: "starter pack",
description: "perfect for beginners",
features: ["basic templates", "email support", "documentation"],
price: "free"
},
// ... more cards
];
<CardStack
cards={customProducts}
type="product"
infinite={false}
className="w-full max-w-md mx-auto"
/>this completely changed how we think about user experience. the attention to detail is remarkable.
alex chen
product designer
beautifully crafted with purpose. every interaction feels intentional and thoughtful.
sarah kim
creative director
elegant solutions that just work. the developer experience is as polished as the user interface.
mike torres
engineer
minimalist perfection. proves that great design is about what you leave out, not what you add.
emma davis
design lead
testimonial mode • infinite loop
← return to stack • toss away →
tools for modern makers
advanced workflows
scale with confidence
build anything
product mode • finite stack
cards get tossed away permanently