Rendyn

Component library

189 components

Interaction

Animated Circular Progress Bar

Animated Circular Progress Bar maps a supplied value to a bounded visual gauge.

Interactive exampleReact Tailwind CSS

Practical React example

Show a real numeric completion measure with an accompanying text value.

Before you copy and paste

Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/animated-circular-progress-bar.tsx and its returned support files from the Code tab; preserve the project-relative paths.

Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.

Show a real numeric completion measure with an accompanying text value

// Usage adapted from Magic UI's pinned MIT source.
// Copyright (c) Magic UI. See ./LICENSES.md.
'use client';

import { AnimatedCircularProgressBar } from '@/components/magicui/animated-circular-progress-bar';

export function ImportProgress({ completed, total }: { completed: number; total: number }) {
  const percentage = total > 0 ? Math.max(0, Math.min(100, completed / total * 100)) : 0;
  return (
    <figure aria-label="Import progress">
      <AnimatedCircularProgressBar value={percentage} min={0} max={100} gaugePrimaryColor="#2563eb" gaugeSecondaryColor="#e2e8f0" />
      <figcaption>{completed} of {total} items imported</figcaption>
    </figure>
  );
}

Usage example adapted from Magic UI's pinned MIT source. Retain the source licence notices when copying.

Use min, max and value in the same unit and provide the meaning of the measurement outside the ring. Clamp or validate invalid values in the application.

Customization

AnimatedCircularProgressBarProps.max
Optional; number.
AnimatedCircularProgressBarProps.min
Optional; number.
AnimatedCircularProgressBarProps.value
Required; number.
AnimatedCircularProgressBarProps.gaugePrimaryColor
Required; string.
AnimatedCircularProgressBarProps.gaugeSecondaryColor
Required; string.
AnimatedCircularProgressBarProps.className
Optional; string.

Integration notes

  • A decorative gauge is not an indeterminate loader and should not invent completion data.
  • Provide a textual value and test color contrast for both gauge colors.

Component source: Magic UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.

Better with your agent

Give your agent taste.

The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.

All components are free. Sign up only to connect MCP.

Connect to MCP