mirror of
https://github.com/rustfs/console.git
synced 2026-11-02 05:32:07 +08:00
* feat: move status route and format repo * fix: resolve lint warnings * fix: load bucket usage asynchronously * fix: sign version config request * fix: show spinner for bucket usage loading * fix: prevent object list fetch loop * fix: dedupe list requests * feat: add sidebar version footer
25 lines
716 B
TypeScript
25 lines
716 B
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
import { Progress as ProgressPrimitive } from "radix-ui"
|
|
|
|
import { cn } from "@/lib/utils"
|
|
|
|
function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>) {
|
|
return (
|
|
<ProgressPrimitive.Root
|
|
data-slot="progress"
|
|
className={cn("bg-muted h-1 rounded-none relative flex w-full items-center overflow-x-hidden", className)}
|
|
{...props}
|
|
>
|
|
<ProgressPrimitive.Indicator
|
|
data-slot="progress-indicator"
|
|
className="bg-primary size-full flex-1 transition-all"
|
|
style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
|
|
/>
|
|
</ProgressPrimitive.Root>
|
|
)
|
|
}
|
|
|
|
export { Progress }
|