BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/loomui/progress-ring

Progress Ring

loomui/progress-ring
FreeComponent

A circular progress ring whose value springs to its target, so a number that changes mid travel keeps the speed it already had.

Live preview

live · rendered by the registry
Rendered by loomui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://loomui.design/r/progress-ring.json

Source

registry/loomui/progress-ring.tsxloomui.design/r/progress-ring.json
1"use client"
2
3import * as React from "react"
4
5import { cn } from "@/lib/utils"
6import { useSpring, type SpringOptions } from "@/registry/lib/use-spring"
7
8export interface ProgressRingProps extends Omit<
9 React.ComponentProps<"div">,
10 "children"
11> {
12 /** Where the ring is now. */
13 value: number
14 /** What a full ring means. */
15 max?: number
16 /** Outside diameter in pixels. */
17 size?: number
18 /** Stroke width in pixels. */
19 thickness?: number
20 /** How the value travels when it changes. */
21 spring?: SpringOptions
22 /** Print the number in the middle. */
23 showValue?: boolean
24 /** Turns the value into the text in the middle. */
25 format?: (value: number) => string
26 /** Accessible name. Give it one if the ring is the only label. */
27 label?: string
28 /** Render the ring at its value without animating to it. */
29 disabled?: boolean
30 /** Children sit in the middle instead of the number. */
31 center?: React.ReactNode
32}
33
34/** The box the ring is drawn in. Every measurement is a share of this. */
35const BOX = 100
36
37const clamp = (value: number, max: number) =>
38 Math.min(Math.max(value, 0), max) / (max || 1)
39
40/**
41 * A ring that fills to a value, on a spring.
42 *
43 * The arc is drawn by walking the stroke's own dash offset around the circle.
44 * That is a paint rather than a composite, which is the one place this steps
45 * outside transform and opacity, and there is no way to draw an arc without it.
46 * It stays cheap because only the stroke is repainted, never the layout.
47 *
48 * The value springs rather than tweens, so a target that changes while the ring
49 * is still moving keeps the speed it already had. A progress ring that restarts
50 * from a standstill every time the number updates is the tell.
51 */
52export function ProgressRing({
53 value,
54 max = 100,
55 size = 120,
56 thickness = 10,
57 spring,
58 showValue = true,
59 format,
60 label,
61 disabled = false,
62 center,
63 className,
64 style,
65 ...props
66}: ProgressRingProps) {
67 const arcRef = React.useRef<SVGCircleElement>(null)
68 const textRef = React.useRef<HTMLSpanElement>(null)
69
70 const radius = (BOX - thickness) / 2
71 const circumference = 2 * Math.PI * radius
72 const target = clamp(value, max)
73
74 const paint = React.useCallback(
75 ({ fill = 0 }: Record<string, number>) => {
76 const arc = arcRef.current
77 if (arc) {
78 arc.style.strokeDashoffset = `${circumference * (1 - fill)}`
79 }
80
81 const text = textRef.current
82 if (text) {
83 const shown = fill * max
84// … truncated

What it pulls in

Other registry items

  • utils
  • use-spring

Files it writes

  • registry/loomui/progress-ring.tsx

Facts

Registry
loomui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-20
Last confirmed
yesterday

Go to the source

Docs on loomui loomui.design rjcuff/Loom-UI on GitHub Raw registry item This item as JSON

More from loomui

All 91 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Aurora Backdropaurora-backdroploomuiComponentsFreeno deps
Bento Gridbento-gridloomuiComponentsFreeno deps
Card Stackcard-stackloomuiComponentsFreeno deps
Compare Slidercompare-sliderloomuiComponentsFreeno deps
Confetti Buttonconfetti-buttonloomuiComponentsFreeno deps
Count Upcount-uploomuiComponentsFreeno deps
Credit Cardcredit-cardloomuiComponentsFreeno deps
DrawerdrawerloomuiComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored on what can be checked

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex