# Ring Stack (Pro)

> Concentric budget rings that dim around the one you point at, and unroll into a labelled bar when you pick it.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Blocks › Charts |
| Live preview | https://uibrik.com/components/ring-stack |
| Writes | 1 file into `components/uibrik/ring-stack/` |
| Packages | `@number-flow/react`, `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 10, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/ring-stack
```

No license yet? Tell the user Ring Stack is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=ring-stack#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
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}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/ring-stack.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `title` | `string` | `"October budget"` | Heading above the rings. |
| `accent` | `string` | `"#3b82f6"` | Colour of the ring in focus. |
| `currency` | `string` | `"$"` | Currency symbol for amounts. |
| `totalLabel` | `string` | `"spent"` | Caption under the overall percentage. |
| `strokeWidth` | `number` | `12` | Thickness of each ring. |
| `ringGap` | `number` | `20` | Distance between ring centres. |
| `morphDuration` | `number` | `0.7` | How long a ring takes to unroll into its bar. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `items` | `RingItem[]` |  | Up to five rings, outermost first: { id, label, spent, budget }. |
| `className` | `string` |  | Classes for the outer shell. |

## Where it fits

- **Budgets by category**: Concentric rings show how much of each budget is used. Pairs with [Split Bar](https://uibrik.com/components/split-bar.md).
- **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](https://uibrik.com/components/gauge.md) (Pro).

## Same shelf: Charts

- [Sleep Stages](https://uibrik.com/components/sleep-stages.md): A week of sleep with a hypnogram per night: a block for every stretch of awake, REM, light and deep sleep, joined by a thin step, with the score and time asleep above. A strip of nights with score bars switches the chart, and the time asleep counts to each night. Each stage's share sits against its typical range; hovering a stage lifts its blocks, and scrubbing lifts the stretch under the cursor and reads its time and length.
- [Split Bar](https://uibrik.com/components/split-bar.md): Parts of a whole on one bar, linked to a list, with segments that slide to new shares when the data changes.
- [Area Chart](https://uibrik.com/components/area-chart.md): A time-series chart with soft area washes and one crosshair that reads every series at once.
- [Bar List](https://uibrik.com/components/bar-list.md): A ranked list of top pages, referrers or countries whose rows slide to their new rank and resize when you switch lists.
- [Cohort Retention](https://uibrik.com/components/cohort-retention.md): Weekly retention as the classic triangle: a row per signup cohort, a column per week, each cell shaded by the share still active. Cells fill in a diagonal wave as the weeks unlock. Above, the chosen cohort's curve draws against the dashed average and morphs to each new cohort. Hovering a cell crosses its row and week and reads the users kept and the gap to average; cells switch between shares and user counts.
- [Stacked Bars](https://uibrik.com/components/stacked-bars.md) (Pro): Monthly columns split by series that slide apart into groups, with a legend that folds series away.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/ring-stack/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
