{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "progress", "title": "Progress", "description": "Terminal-style linear progress bar: bordered track, Catppuccin fill, sharp corners, restrained 150ms fill updates.", "dependencies": [ "@radix-ui/react-progress" ], "registryDependencies": [ "utils", "theme-catppuccin-mocha", "font-jetbrains-mono" ], "files": [ { "path": "registry/ui/progress.tsx", "content": "import * as React from \"react\";\nimport * as ProgressPrimitive from \"@radix-ui/react-progress\";\nimport { cn } from \"@/lib/utils\";\n\nfunction Progress({\n\tclassName,\n\tvalue,\n\tmax = 100,\n\t...props\n}: React.ComponentProps) {\n\tconst safeMax = max > 0 ? max : 100;\n\tconst safeValue =\n\t\ttypeof value === \"number\" ? Math.min(Math.max(value, 0), safeMax) : 0;\n\tconst percentage = (safeValue / safeMax) * 100;\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\n\t);\n}\n\nexport { Progress };\n", "type": "registry:ui" } ], "type": "registry:ui" }