uibrik

Ring Stack

New

Preview

Customize

Accent
Ring width12px
Ring gap20px
Unroll0.70s

Usage

import { RingStack } from "@/components/uibrik/ring-stack/ring-stack";

<RingStack />

Installation

npx shadcn@latest add https://uibrik.com/r/ring-stack.json
Adds the files to components/uibrik/ring-stack and installs @number-flow/react and motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/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.