FlipStack

A stylish and animated card stack UI for showcasing content in layered views.

Isabelle Carlos
Lana Akash
Ahdeetai
Isabella Mendes
Meera Patel

Installation

npx shadcn@latest add https://scrollxui.dev/registry/flipstack.json 

Usage

import FlipStack from "@/components/ui/flipstack";
<FlipStack
  cards={[
    { id: 1, content: "Card One" },
    { id: 2, content: "Card Two" },
    { id: 3, content: "Card Three" },
  ]}
/>

Changelog

17-11-2025 — Added mobileDirection Prop

  • Introduced a new mobileDirection prop ("top" | "bottom") to control the mobile bounce direction.

API Reference

FlipStack

A stylish and animated card stack UI for showcasing content in layered views.

Props

PropertyTypeDefaultDescription
cardsFlipStackCard[]id
Array of cards to display in the stack.
FlipStackCard.idnumberrequired
Unique identifier for the card. Used as React key and to manage animations.
mobileDirection"top" | "bottom""top"
Controls the bounce direction of the active card on mobile devices.
FlipStackCard.contentReactNodeoptional
Custom content to render inside the card. Can be text, images, or any JSX element.

Built withby Ahdeetai.