Progress
Server ComponentDeterminate progress bar.
Import
tsx
import { Progress } from "@cooud-ui/ui";
bash
npx cooud-ui add progress
Determinate progress bar.
import { Progress } from "@cooud-ui/ui";
npx cooud-ui add progress
On this page
Determinate progress bars — the middle bar animates in on mount.
function ProgressDemo() {const [animated, setAnimated] = useState(0);useEffect(() => {const timer = setTimeout(() => setAnimated(66), 400);return () => clearTimeout(timer);}, []);return (<div className="flex w-full max-w-sm flex-col gap-6"><Progress value={30} aria-label="Storage used" /><Progress value={animated} aria-label="Upload progress" /><Progress value={100} aria-label="Sync complete" /></div>);}