diff --git a/apps/www/public/r/styles/default/progress.json b/apps/www/public/r/styles/default/progress.json index 44b04f655c1..a68f67cac41 100644 --- a/apps/www/public/r/styles/default/progress.json +++ b/apps/www/public/r/styles/default/progress.json @@ -7,7 +7,7 @@ "files": [ { "path": "ui/progress.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as ProgressPrimitive from \"@radix-ui/react-progress\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Progress = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, value, ...props }, ref) => (\n \n \n \n))\nProgress.displayName = ProgressPrimitive.Root.displayName\n\nexport { Progress }\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as ProgressPrimitive from \"@radix-ui/react-progress\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Progress = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, value, ...props }, ref) => (\n \n \n \n))\nProgress.displayName = ProgressPrimitive.Root.displayName\n\nexport { Progress }\n", "type": "registry:ui", "target": "" } diff --git a/apps/www/public/r/styles/new-york/progress.json b/apps/www/public/r/styles/new-york/progress.json index 6aa08a74b8a..b72df930dd3 100644 --- a/apps/www/public/r/styles/new-york/progress.json +++ b/apps/www/public/r/styles/new-york/progress.json @@ -7,7 +7,7 @@ "files": [ { "path": "ui/progress.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as ProgressPrimitive from \"@radix-ui/react-progress\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Progress = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, value, ...props }, ref) => (\n \n \n \n))\nProgress.displayName = ProgressPrimitive.Root.displayName\n\nexport { Progress }\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as ProgressPrimitive from \"@radix-ui/react-progress\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Progress = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, value, ...props }, ref) => (\n \n \n \n))\nProgress.displayName = ProgressPrimitive.Root.displayName\n\nexport { Progress }\n", "type": "registry:ui", "target": "" } diff --git a/apps/www/registry/default/ui/progress.tsx b/apps/www/registry/default/ui/progress.tsx index 5c87ea48656..81e4d07d92f 100644 --- a/apps/www/registry/default/ui/progress.tsx +++ b/apps/www/registry/default/ui/progress.tsx @@ -15,6 +15,7 @@ const Progress = React.forwardRef< "relative h-4 w-full overflow-hidden rounded-full bg-secondary", className )} + value={typeof value === "number" ? value : 0} {...props} >