Gradient Progress

PreviousNext

A progress component with gradient styling

Docs
shadcnui-blockscomponent

Preview

Loading preview…
components/customized/progress/progress-05.tsx
"use client";

import * as React from "react";

import { Progress } from "@/registry/ui/progress";

export default function ProgressGradientDemo() {
  const [progress, setProgress] = React.useState(13);

  React.useEffect(() => {
    const timer = setTimeout(() => setProgress(66), 500);
    return () => clearTimeout(timer);
  }, []);

  return (
    <Progress
      value={progress}
      className="w-[60%] [&>div]:bg-linear-to-r [&>div]:from-cyan-400 [&>div]:via-sky-500 [&>div]:to-indigo-500 [&>div]:rounded-l-full"
    />
  );
}

Installation

npx shadcn@latest add @shadcnui-blocks/progress-05

Usage

import { Progress05 } from "@/components/progress-05"
<Progress05 />