Components
A liquid-style progress bar that fills horizontally with a soft glowing gradient as it advances.
Loading preview...
"use client";
import * as React from "react";
import { LoaderLiquidProgress } from "@/components/ui/loaders-liquid-progress";
export default function DemoLiquidProgress() {
const [progress, setProgress] = React.useState(0);
React.useEffect(() => {
const id = setInterval(() => {
setProgress((p) => (p >= 100 ? 0 : p + 10));
}, 800);
return () => clearInterval(id);
}, []);
return (
<div className="flex min-h-[220px] w-full items-center justify-center bg-background p-8">
<div className="w-full max-w-sm space-y-3">
<div className="flex items-center justify-between text-sm text-muted-foreground">
<span>Uploading</span>
<span>{progress}%</span>
</div>
<LoaderLiquidProgress progress={progress} height={12} />
</div>
</div>
);
}