mememechez's picture
Deploy final cleaned source code
ca28016
raw
history blame
719 Bytes
"use client"
import * as React from "react"
import * as ProgressPrimitive from "@radix-ui/react-progress"
import { cn } from "@/lib/utils"
const Progress = React.forwardRef<
React.ElementRef<typeof ProgressPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>
>(({ className, value, ...props }, ref) => (
<div
ref={ref}
className={cn("relative h-2 w-full overflow-hidden rounded-full bg-[var(--bg-panel)] glass", className)}
{...props}
>
<div
className="absolute left-0 top-0 h-full bg-[var(--neon-cyan)] transition-all"
style={{ width: `${value || 0}%` }}
/>
</div>
))
Progress.displayName = ProgressPrimitive.Root.displayName
export { Progress }