233
Payment cards tucked in a stitched leather wallet – hover and they rise out in a fan, click the front one to lift it clear and flip it, or a peeking one to pull it forward.
akapayment·credit card·wallet
Run this in any project set up for the shadcn CLI. It copies the Card Stack source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/card-stack.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { CardStack } from "@/components/card-stack";
export default function Page() {
return <CardStack />;
}A free React illustration in the Objects collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Card Stack source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| cardsrequired | PaymentCard[] | — |
| autoPlay | boolean | true |
| className | string | — |