Swipe, click, or press Enter to send the top card to the back.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| cards | ReactNode[] | Cards in the stack, first item on top. | |
| width | number | 300 | Width of each card in px. |
| height | number | 190 | Height of each card in px. |
| visible | number | 3 | How many cards are visible behind the top one. |
| className | string | Extra classes added to the outer element. |