import * as ProgressPrimitive from "@radix-ui/react-progress"; import * as React from "react"; import { cn } from "../lib/utils"; const Progress = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef & { variant?: "default" | "sandbox"; showValue?: boolean; } >( ( { className, value, variant = "default", showValue = false, ...props }, ref, ) => { const indicatorVariants = { default: "bg-primary", sandbox: "bg-[image:var(--accent-gradient-strong)]", }; return (
{showValue && ( {value}% )}
); }, ); Progress.displayName = ProgressPrimitive.Root.displayName; export { Progress };