Updated
Ring Stack
ProOctober budget
Customize
Accent
Ring width12px
Ring gap20px
Unroll0.70s
Installation
ProRing Stack is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/ring-stack
Loading your installation…
Usage
import { RingStack } from "@/components/uibrik/ring-stack/ring-stack";const items = [ { id: "rent", label: "Rent", spent: 1800, budget: 1800 }, { id: "food", label: "Food", spent: 412, budget: 600 }, // …2 more];<RingStack title="October budget" accent="#3b82f6" currency="$" totalLabel="spent" strokeWidth={12} ringGap={20} morphDuration={0.7} items={items}/>Where to use Ring Stack
Props
RingStack- title
- Type string
- "October budget"
- Heading above the rings.
- accent
- Type string
- "#3b82f6"
- Colour of the ring in focus.
- currency
- Type string
- "$"
- Currency symbol for amounts.
- totalLabel
- Type string
- "spent"
- Caption under the overall percentage.
- strokeWidth
- Type number
- 12
- Thickness of each ring.
- ringGap
- Type number
- 20
- Distance between ring centres.
- morphDuration
- Type number
- 0.7
- How long a ring takes to unroll into its bar.
- items
- Type RingItem[]
- –
- Up to five rings, outermost first: { id, label, spent, budget }.
- className
- Type string
- –
- Classes for the outer shell.