Animated Progress Bar
tripled/animated-progress-shadcnuiFreeComponent
Progress bar with smooth animation
Live preview
live · rendered by the registry
Rendered by tripled on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://ui.tripled.work/r/animated-progress-shadcnui.jsonSource
1"use client";23import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";4import { animate, motion, useMotionValue, useTransform } from "framer-motion";5import { useEffect } from "react";67export function AnimatedProgress() {8 const progress = useMotionValue(0);9 const width = useTransform(progress, [0, 100], ["0%", "100%"]);10 const displayProgress = useTransform(progress, (v) => `${Math.round(v)}%`);1112 useEffect(() => {13 const animation = animate(progress, 75, {14 duration: 2,15 ease: "easeOut",16 });1718 return animation.stop;19 }, [progress]);2021 return (22 <div className="flex items-center justify-center p-12">23 <Card className="w-80">24 <CardHeader>25 <CardTitle className="text-lg">Upload Progress</CardTitle>26 </CardHeader>27 <CardContent>28 <div className="h-2 w-full overflow-hidden rounded-full bg-gray-200 dark:bg-gray-800">29 <motion.div30 style={{ width }}31 className="h-full bg-gradient-to-r from-accent to-slate-500"32 />33 </div>34 <motion.p className="mt-2 text-right text-sm text-[var(--foreground)]/70">35 {displayProgress}36 </motion.p>37 </CardContent>38 </Card>39 </div>40 );41}
What it pulls in
npm packages
Files it writes
More from tripled
All 282 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| AI Chat Interfaceai-chat-interface-shadcnui | tripled | Components | Free | 2 deps | |
| AI Glow Inputai-glow-input-shadcnui | tripled | Components | Free | 2 deps | |
| AI Loading Skeletonai-loading-skeleton-shadcnui | tripled | Components | Free | 2 deps | |
| AI Response Typing Streamai-response-typing-shadcnui | tripled | Components | Free | 2 deps | |
| AI Unlock Animationai-unlock-animation-shadcnui | tripled | Components | Free | 2 deps | |
| Animated Accordionanimated-accordion-shadcnui | tripled | Components | Free | 2 deps | |
| Animated Card Stackanimated-card-stack-baseui | tripled | Components | Free | 2 deps | |
| Animated Card Stackanimated-card-stack-shadcnui | tripled | Components | Free | 2 deps |
