Faster savings growth than a regular account

Faster savings growth than a regular account
A glass card that cycles through stats, each number counting up on rolling digits.
| Prop | Type | Description |
|---|---|---|
| stats | { value: string; label: ReactNode; description?: ReactNode }[] | value holds one number ("3.2x", "$1.2M", "12,400"); the number counts up, the prefix and suffix stay put. A value with no number shows as text. |
| interval | numberdefault 3.6 | Seconds each stat stays up before the next rises in. |
| className | string | Classes on the root (card plus dots). |
npx shadcn@latest add https://purrfectui.com/r/stat-rotator.jsonimport { StatRotator } from "@/components/ui/stat-rotator";
<StatRotator
stats={[
{ value: "3.2x", label: "Faster savings growth" },
{ value: "$1.2M", label: "Saved in year one" },
{ value: "98%", label: "Hit their monthly goal" },
]}
/>Loading…
MIT. Copy it into your project and change it as you like.
0