067
Notifications stacked like a small deck of cards: flick the top one away, or press Delete, and the next one steps forward.
akanotification stack·swipe
Run this in any project set up for the shadcn CLI. It copies the Card Pile source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/card-pile.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 { CardPile } from "@/components/card-pile";
export default function Page() {
return <CardPile />;
}A free React component in the Status collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Card Pile source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| noticesrequired | Notice[] | — |
| visible | number | 3 |
| onDismiss | (notice: Notice) => void | — |
| onAction | (notice: Notice) => void | — |
| className | string | — |