Animated Circular Progress Bar

A circular progress bar component with animated transitions between primary and secondary colors.

0

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/animated-circular-progress-bar.json

Usage

<script lang="ts">	import { AnimatedCircularProgressBar } from "#lib/components/magic/animated-circular-progress-bar/index.js";	import { mode } from "mode-watcher";</script>
<AnimatedCircularProgressBar	value={75}	gaugePrimaryColor={mode.current === "dark" ? "#34d399" : "#4f46e5"}	gaugeSecondaryColor="#e5e7eb"/>

Props

Animated Circular Progress Bar

A component for displaying animated circular progress.

NameTypeDefaultDescription
maxnumber100The maximum value for the progress bar
minnumber0The minimum value for the progress bar
valuenumber0The current value of the progress bar
gaugePrimaryColorstringrequiredThe color for the progress portion of the bar
gaugeSecondaryColorstringrequiredThe color for the remaining portion of the bar
classClassValue""Additional CSS classes to apply