Componentfeedback0.46 KB gzipZero dependencies
Progress
Marching striped progress indicator bar.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add progressOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { Progress } from "@/components/ui/progress"; <Progress value={72} />Source code
progress.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxprogress.tsx31 lines
import * as React from "react";import { cn } from "./lib/utils"; export type ProgressProps = { value: number; max?: number; className?: string; label?: string;} & Omit<React.HTMLAttributes<HTMLElement>, "value">; export function Progress({ value, max = 100, className, label, ...props }: ProgressProps) { const clamped = Math.min(Math.max(value, 0), max); const percent = (clamped / max) * 100; return ( <div role="progressbar" aria-label={label ?? `Progress ${Math.round(percent)}%`}Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { Progress } from "@/components/ui/progress"; <Progress />| Prop | Type | Description |
|---|---|---|
| value | number | Current progress (required, clamped to max). |
| max | number | Maximum value (default 100). |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |
| label | string | Accessible label text rendered or attached to the control. |