Spend Donut Card
A radial spend breakdown whose rounded arcs sweep in one after another; hovering or focusing a category pops its arc outward and rolls the centre total to that amount.
Try it: Hover the arcs or Tab through the legend.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/spend-donut-card.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/spend-donut-card. You can also copy the source into components/ui/spend-donut-card.tsx (view on GitHub).
Usage
import { SpendDonutCard } from '@/components/ui/spend-donut-card'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
slices | SpendSlice[] | 5 categories | { label, value, color } |
title / currency | string | Spending · October / $ | Header and currency. |
size | number | 180 | Donut diameter. |
className | string | — | Extra classes merged onto the root. |
Dependencies
motionlucide-react
Related Data Widgets components
- Contribution Heatmap Tile
A weeks × days activity heatmap: cells pop in on a diagonal wave, the total and streak roll up, and the grid is one roving tab stop where arrows move a ring that announces the day.
- Sparkline KPI Tile
A compact metric tile with a live dot, rolling numerals, a delta chip and a smooth sparkline that draws in, streams new points and shows a crosshair value on hover or ← →.
- Wallet Balance Card
A fanned stack of payment cards: picking one springs it to the front while the rest tuck behind, the balance rolls to the new amount and an eye toggle blurs the figures.
- Pastel Object Carousel
A cover-flow of pastel portrait cards with floating caption panels. A heavily damped spring carries drags; neighbours tuck behind at 85%, and each layered CSS-3D object (coins, calendar, key, lock…
- Crypto Ticker Row
A watchlist with live prices: each tick flashes the price green or red and fades back, mini sparklines morph to the new history and every row is a labelled button.
- Budget Area Card
A soft white squircle with a big rolling total, a delta pill and floating soft-3D banknotes. An indigo stepped area chart draws itself in with drifting sparkles and an end arrow, and a tooltip…