About
A horizontal loading rail where a shape-shifting mercury-like bead travels back and forth with a soft reflected trail, used to signal indeterminate progress for an inline task or section.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Mercury Rail Loader to your project and fits it to your theme.
Code
How Mercury Rail Loader is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { MercuryRailLoader } from "@/components/ui/mercury-rail-loader";
export default function MercuryRailLoaderDemo() {
return (
<div className="flex w-full h-screen items-center justify-center bg-background text-foreground">
<MercuryRailLoader label="Syncing changes" width={220} speed={2100} />
</div>
);
}








