BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/scificn/progress-ring

Progress Ring

scificn/progress-ring
FreeComponent

SVG circular gauge with glow arc. Complements the linear Progress bar. Variants: DEFAULT, ACTIVE, WARNING, CRITICAL.

Live preview

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

Install it

npx shadcn@latest add https://www.scificn.dev/r/progress-ring.json

Source

ui/progress-ring/progress-ring.tsxwww.scificn.dev/r/progress-ring.json
1import * as React from 'react'
2import { cn } from '@/lib/utils'
3
4export type ProgressRingVariant = 'DEFAULT' | 'ACTIVE' | 'WARNING' | 'CRITICAL'
5
6export interface ProgressRingProps extends React.HTMLAttributes<HTMLDivElement> {
7 value: number
8 size?: number
9 strokeWidth?: number
10 label?: string
11 showValue?: boolean
12 variant?: ProgressRingVariant
13}
14
15const ProgressRing = React.forwardRef<HTMLDivElement, ProgressRingProps>(
16 (
17 {
18 className,
19 value = 0,
20 size = 120,
21 strokeWidth = 6,
22 label,
23 showValue = true,
24 variant = 'DEFAULT',
25 style,
26 ...props
27 },
28 ref
29 ) => {
30 const pct = Math.min(Math.max(value, 0), 100)
31 const cx = size / 2
32 const cy = size / 2
33 const r = (size - strokeWidth) / 2
34 const circ = 2 * Math.PI * r
35 const offset = circ * (1 - pct / 100)
36
37 const accentColor =
38 variant === 'ACTIVE' ? 'var(--color-green)' :
39 variant === 'WARNING' ? 'var(--color-amber)' :
40 variant === 'CRITICAL' ? 'var(--color-red)' :
41 'var(--text-secondary)'
42
43 const textGlow =
44 variant === 'ACTIVE' ? 'var(--text-glow-green)' :
45 variant === 'WARNING' ? 'var(--text-glow-amber)' :
46 variant === 'CRITICAL' ? 'var(--text-glow-red)' :
47 'none'
48
49 const isSmall = size < 80
50
51 return (
52 <div
53 ref={ref}
54 className={cn(className)}
55 style={{
56 position: 'relative',
57 display: 'inline-flex',
58 alignItems: 'center',
59 justifyContent: 'center',
60 width: size,
61 height: size,
62 fontFamily: 'var(--font-mono)',
63 flexShrink: 0,
64 ...style,
65 }}
66 {...props}
67 >
68 <svg
69 width={size}
70 height={size}
71 style={{ position: 'absolute', inset: 0 }}
72 aria-hidden="true"
73 >
74 {/* Track ring */}
75 <circle
76 cx={cx} cy={cy} r={r}
77 fill="none"
78 stroke="var(--border)"
79 strokeWidth={strokeWidth}
80 />
81
82 {/* Glow layer — wider, low opacity */}
83 {pct > 0 && (
84 <circle
85 cx={cx} cy={cy} r={r}
86 fill="none"
87 stroke={accentColor}
88 strokeWidth={strokeWidth + 8}
89 strokeDasharray={circ}
90 strokeDashoffset={offset}
91 strokeLinecap="butt"
92// … truncated

Facts

Registry
scificn
Type
registry:ui
Access
Free
Files written
0
Licence
the repository states none
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

Docs on scificn www.scificn.dev baxy5/scificn-ui on GitHub Raw registry item This item as JSON

More from scificn

All 33 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AlertalertscificnComponentsFree1 dep
BadgebadgescificnComponentsFree1 dep
Bar Chartbar-chartscificnComponentsFreeno deps
BreadcrumbbreadcrumbscificnComponentsFreeno deps
ButtonbuttonscificnComponentsFree2 deps
CardcardscificnComponentsFreeno deps
CheckboxcheckboxscificnComponentsFree1 dep
DialogdialogscificnComponentsFree1 dep
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex