Arihant jain

Progress With Value

Component 3

About

A progress bar that displays its percentage value inline, with configurable label positions inside or outside the track.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Progress With Value to your project and fits it to your theme.

Code

How Progress With Value is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";
import * as React from "react";
import { ProgressWithValue } from "@/components/ui/progress-with-value";

const PERCENTAGE = [0, 10, 15, 30, 45, 50, 65, 80, 90, 100];

const ProgressWithValueDemo = () => {
  const [value, setValue] = React.useState(0);
  React.useEffect(() => {
    let index = 0;
    const interval = setInterval(() => {
      setValue(PERCENTAGE[index % PERCENTAGE.length]);
      index++;
    }, 1000);
    return () => clearInterval(interval);
  }, []);
  return (
    <div className="w-full px-10">
      <ProgressWithValue value={value} position="follow" />
    </div>
  );
};

export default ProgressWithValueDemo;

Dependencies

More by Arihant jain

View all
  • Footer section

    Footer section

    1.9K
  • Multistep Form

    Multistep Form

    710
  • Animated Drawer

    Animated Drawer

    694
  • Status Badge

    Status Badge

    514
  • Stacked Circular Footer

    Stacked Circular Footer

    426
  • Input Modal

    Input Modal

    330
  • Large Name Footer

    Large Name Footer

    199
  • Profile Dropdown

    Profile Dropdown

    196