Liquid Progress Loader

A liquid-style horizontal progress bar whose gradient fill slides in from the left to represent progress, with a pulsing radial glow inside the fill. It is a single client component built on motion/react.

Liquid Progress Loader
LIVE · running in a sandboxed iframe
Installed with plain shadcn add · no workarounds · theme neutral (none shipped)
See how it was built

Installation

pnpm dlx shadcn@latest add @animbits/loaders-liquid-progress

Requires @animbits in the registries of your components.json (shadcn adds official directory namespaces automatically).

Usage

usage.tsx
import { LoaderLiquidProgress } from "@/components/animations/loaders/liquid-progress";export default function Example() {  return <LoaderLiquidProgress progress={60} />;}
  • Showing upload, download, or task completion progress where a soft, glowing fill is wanted instead of a flat bar
  • Decorative progress indicators in landing pages, dashboards, or onboarding steps that need a playful liquid feel
  • Replacing a plain Progress bar in marketing or hero sections where a branded accent color is desired
  • Indicating progress for a multi-step flow where the fill should animate smoothly between values

Examples

Basic progress bar

Renders the bar at 60 percent with the default color, height, and duration.

basic-progress-bar.tsx
import { LoaderLiquidProgress } from "@/components/animations/loaders/liquid-progress";export default function BasicExample() {  return <LoaderLiquidProgress progress={60} />;}

Custom color, height, and duration

Uses a green accent, a taller 16px track, and a slower 2 second fill animation.

custom-color,-height,-and-duration.tsx
import { LoaderLiquidProgress } from "@/components/animations/loaders/liquid-progress";export default function CustomExample() {  return (    <LoaderLiquidProgress      progress={85}      height={16}      color="#22c55e"      duration={2}      className="max-w-md"    />  );}

Animated upload progress

Drives the progress value from state so the fill animates as an upload advances.

animated-upload-progress.tsx
"use client";import * as React from "react";import { LoaderLiquidProgress } from "@/components/animations/loaders/liquid-progress";export default function UploadExample() {  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 flex-col gap-2 w-80">      <span className="text-sm">Uploading {progress}%</span>      <LoaderLiquidProgress progress={progress} color="#8b5cf6" />    </div>  );}

API reference

PropTypeDefaultDescription
progressnumber0Fill amount used as the target offset. The fill moves to translateX of (progress - 100) percent, so 0 hides the fill and 100 shows it fully. Values are not clamped in the source.
heightnumber8Height of the track in pixels, applied as an inline style.
colorstring"#3b82f6"Base color used for the fill gradient and the glow. Use a hex color, because the source appends alpha suffixes (dd and 44) directly to the string.
durationnumber1Duration of the fill transition in seconds, using the easeOut easing.
classNamestring—Additional class names merged onto the outer track element with cn().

Accessibility

  • The component renders only decorative divs and does not set role, aria-valuenow, aria-valuemin, or aria-valuemax; add role="progressbar" with aria-valuenow, aria-valuemin={0}, and aria-valuemax={100} on a wrapper when conveying progress to assistive technology.
  • Provide a visible text label such as a percentage or status message next to the bar so the progress value is not conveyed by color or motion alone.
  • The infinite glow pulse runs continuously; consider wrapping the bar in a prefers-reduced-motion check or disabling the inner animation for users who opt out of motion.
  • Keep sufficient contrast between the fill color and the neutral track background in both light and dark themes.

Docs written by anthropic:claude-haiku-5-5 from the registry source.

Use with Coding Agent

Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.

prompt.md
Use the "Liquid Progress Loader" component (animbits/loaders-liquid-progress) from its shadcn registry.1. Install it with: npx shadcn@latest add @animbits/loaders-liquid-progress2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: progress, height, color, duration, className.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { LoaderLiquidProgress } from "@/components/animations/loaders/liquid-progress";export default function Example() {  return <LoaderLiquidProgress progress={60} />;}```

Files & dependencies

  • registry/new-york/animations/loaders/liquid-progress.tsx
dependenciesmotion

Looks similar, elsewhere