CD-15Cards
Spending Ring
A spending breakdown you spin like a dial; flick the ring and it settles with a category under the marker.
no extra packages
PROOnboarding Checklist and more like it are in Kokonut UI Pro
Installation
Spending Ring is a free, open-source React component in the Kokonut UI Cards collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/spending-ring.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/spending-ringUsage
import SpendingRing from "@/components/kokonutui/spending-ring";
export default function Example() {
return <SpendingRing />;
}Props
titlestringDefault "October spending"categoriesSpendingCategory[]Default built-incurrencystringDefault "USD"classNamestringExtra classes for the root element.
SpendingCategory
namerequiredstringamountrequirednumberchangenumberChange from last month, in percent.
strokerequiredstringTailwind classes for the segment stroke and the legend dot.
dotrequiredstringDependencies
| Needs | Version | Comes from |
|---|---|---|
cn from lib/utils.ts | shadcn init | |
| React | 19 | Your app |
| Tailwind CSS | 4 | Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.

