CircularGauge() — ui Function Reference
Architecture documentation for the CircularGauge() function in vercel.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 00e08a8e_105d_3391_970c_ca6a151b1019["CircularGauge()"] 2038c283_e37d_b58c_c8d2_c03efe5b269c["vercel.tsx"] 00e08a8e_105d_3391_970c_ca6a151b1019 -->|defined in| 2038c283_e37d_b58c_c8d2_c03efe5b269c style 00e08a8e_105d_3391_970c_ca6a151b1019 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/blocks/vercel.tsx lines 515–560
function CircularGauge({ percentage }: { percentage: number }) {
const normalizedPercentage = Math.min(Math.max(percentage, 0), 100)
const circumference = 2 * Math.PI * 42.5
const strokePercent = (normalizedPercentage / 100) * circumference
return (
<svg
aria-hidden="true"
fill="none"
height="16"
width="16"
strokeWidth="2"
viewBox="0 0 100 100"
className="-rotate-90"
>
<circle
cx="50"
cy="50"
r="42.5"
strokeWidth="12"
strokeDashoffset="0"
strokeLinecap="round"
strokeLinejoin="round"
className="opacity-20"
stroke="currentColor"
style={{
strokeDasharray: `${circumference} ${circumference}`,
}}
/>
<circle
cx="50"
cy="50"
r="42.5"
strokeWidth="12"
strokeDashoffset="0"
strokeLinecap="round"
strokeLinejoin="round"
stroke="currentColor"
className="transition-all duration-300"
style={{
strokeDasharray: `${strokePercent} ${circumference}`,
}}
/>
</svg>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does CircularGauge() do?
CircularGauge() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/blocks/vercel.tsx.
Where is CircularGauge() defined?
CircularGauge() is defined in apps/v4/registry/bases/radix/blocks/vercel.tsx at line 515.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free