219
A grid that deals itself out from one point like a hand of cards: each card flies to its slot tilted and settles flat, and a shuffle sweeps them back into the deck and deals a fresh order, even mid-flight.
akadeal·shuffle·stagger
Run this in any project set up for the shadcn CLI. It copies the Card Deal source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/card-deal.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 { CardDeal } from "@/components/card-deal";
export default function Page() {
return <CardDeal />;
}A free React motion component in the Surfaces collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Card Deal source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| itemsrequired | T[] | — |
| getKeyrequired | (item: T) => string | — |
| renderItemrequired | (item: T, index: number) => ReactNode | — |
| origin | RefObject<HTMLElement | null> | — |
| stagger | number | 0.05 |
| className | string | — |
| slotClassName | string | — |
| label | string | "Cards" |