Progress/progress-with-label-

PreviousNext

A progress/progress-with-label- example

Docs
shadcnblocksblock

Preview

Loading preview…
code/example/progress/progress-with-label-1.tsx
import { Progress } from "@/components/ui/progress";

export const title = "With Percentage";

const Example = () => {
  const value = 65;
  return (
    <div className="w-full max-w-md space-y-2">
      <div className="flex justify-between text-sm">
        <span className="text-muted-foreground">Progress</span>
        <span className="font-medium">{value}%</span>
      </div>
      <Progress value={value} />
    </div>
  );
};

export default Example;

Installation

npx shadcn@latest add @shadcnblocks/progress-progress-with-label-1

Usage

import { ProgressProgressWithLabel1 } from "@/components/progress-progress-with-label-1"
<ProgressProgressWithLabel1 />