Black Friday: 30% off Pro

Get 30% off

Updated

Ring Stack

Pro

Preview

October budget
85%spent

Customize

Accent
Ring width12px
Ring gap20px
Unroll0.70s

Installation

Pro

Ring 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

  1. 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}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/ring-stack

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

  • Budgets by category

    Concentric rings show how much of each budget is used.

    Pairs with Split Bar

  • Fitness goals

    Rings dimming around the one you point at focus attention on a single goal.

  • Quota usage

    Unrolling into a labelled bar gives exact values when needed.

    Pairs with Gauge

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.