Card stack

Work as a stack of cards: swipe or click to see the next one.

UniversalUsed in production
Install
npx finepieces add card-stack
Or with the shadcn CLI ›
npx shadcn@latest add https://finepieces.net/r/card-stack.json

Drag the top card

import { CardStack } from "@/components/fine-pieces/card-stack";

export default function Example() {
  return (
    <CardStack
      heading={<>Swipe through <mark>our work.</mark></>}
      cards={[
        { image: "/images/cafe-1.webp", title: "Kofi & Co", caption: "A week of reels for the new shop" },
        { image: "/images/bakkerij-2.webp", title: "Broodhuis Vos", caption: "The morning shift on camera" },
        { image: "/images/sieraad-2.webp", title: "Oro", caption: "Details that do the work" },
        { image: "/images/salon-3.webp", title: "Maison Lila", caption: "Meet Lieke, and the story behind the chair" },
        { image: "/images/bloem-2.webp", title: "Fleur & Zo", caption: "Bouquets of the week" },
      ]}
    />
  );
}