Progress Ring Demo
loomui/progress-ring-demoFreeExample
A ring stepping through five values without ever settling.
Install it
npx shadcn@latest add https://loomui.design/r/progress-ring-demo.jsonSource
1"use client"23import * as React from "react"45import { ProgressRing } from "@/registry/loomui/progress-ring"67const STOPS = [20, 64, 38, 92, 12]89export default function ProgressRingDemo() {10 const [index, setIndex] = React.useState(0)1112 React.useEffect(() => {13 const timer = window.setInterval(14 () => setIndex((current) => (current + 1) % STOPS.length),15 180016 )17 return () => window.clearInterval(timer)18 }, [])1920 return (21 <div className="flex flex-col items-center gap-4">22 <ProgressRing value={STOPS[index]} label="Threads wound" />23 <p className="text-muted-foreground text-xs">24 It never stops to start again.25 </p>26 </div>27 )28}
What it pulls in
Other registry items
Files it writes
More from loomui
All 91 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Aurora Backdrop Demoaurora-backdrop-demo | loomui | Examples | Free | no deps | |
| Bento Grid Demobento-grid-demo | loomui | Examples | Free | no deps | |
| Card Stack Democard-stack-demo | loomui | Examples | Free | no deps | |
| Compare Slider Democompare-slider-demo | loomui | Examples | Free | no deps | |
| Confetti Button Democonfetti-button-demo | loomui | Examples | Free | no deps | |
| Count Up Democount-up-demo | loomui | Examples | Free | no deps | |
| Credit Card Democredit-card-demo | loomui | Examples | Free | no deps | |
| Drawer Demodrawer-demo | loomui | Examples | Free | no deps |
