mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-29 07:56:37 +08:00
66de566a00
* fix(frontend): left-align announcement logo in homepage banner * fix(frontend): keep multiselect panels floating and preserve summaries * fix(frontend): rebalance config card header spacing * fix(frontend): normalize formatting and fix multiselect modal behavior * fix(frontend): restore config divider spacing on desktop
37 lines
869 B
TypeScript
37 lines
869 B
TypeScript
import * as React from "react";
|
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
function Progress({
|
|
className,
|
|
value,
|
|
indicatorClassName,
|
|
...props
|
|
}: React.ComponentProps<typeof ProgressPrimitive.Root> & {
|
|
indicatorClassName?: string;
|
|
}) {
|
|
return (
|
|
<ProgressPrimitive.Root
|
|
className={cn(
|
|
"relative h-2 w-full overflow-hidden rounded-full bg-default-200",
|
|
className,
|
|
)}
|
|
data-slot="progress"
|
|
value={value}
|
|
{...props}
|
|
>
|
|
<ProgressPrimitive.Indicator
|
|
className={cn(
|
|
"h-full w-full flex-1 bg-primary transition-all",
|
|
indicatorClassName,
|
|
)}
|
|
data-slot="progress-indicator"
|
|
style={{ transform: `translateX(-${100 - (value ?? 0)}%)` }}
|
|
/>
|
|
</ProgressPrimitive.Root>
|
|
);
|
|
}
|
|
|
|
export { Progress };
|