A glowing progress bar with phase labels that fly in along the Z-axis and reveal letter by letter.
Install
Add it to your project
Run this in a project set up for shadcn/ui. It writes the files and installs the npm packages.
First time: connect the Infinity UI registry
- Create a personal token on your Tokens page.
- Put it in
.env.localasINFINITYUI_TOKEN. - Add the registry to
components.json:
{
"registries": {
"@infinityui": {
"url": "https://infinityui.io/r/{name}.json",
"headers": {
"Authorization": "Bearer ${INFINITYUI_TOKEN}"
}
}
}
}Using Claude Code, Codex, Cursor, Lovable or v0? See CLI & MCP for a setup prompt.
npm packages it adds
- motion
Code
"use client";
import * as React from "react";
import { ProgressiveFluxLoader } from "@/registry/ruixenui/progressive-flux-loader";
const PHASES = [
{ at: 0, label: "uploading" },
{ at: 40, label: "processing" },
{ at: 75, label: "finalizing" },
{ at: 100, label: "complete" },
];
export default function ProgressiveFluxLoaderDemo() {
// Drive the loader from simulated upload progress so the fill, phase labels,
// and completion are all visible in the preview.
const [progress, setProgress] = React.useState(0);
React.useEffect(() => {
const id = setInterval(() => {
setProgress((p) => (p >= 100 ? 0 : Math.min(100, p + 2)));
}, 200);
return () => clearInterval(id);
}, []);
return (
<div className="flex min-h-[420px] w-full items-center justify-center px-6 py-16">
<ProgressiveFluxLoader value={progress} phases={PHASES} />
</div>
);
}
































