Componentfeedback0.6 KB gzipZero dependencies
Progress Circle
Circular progress ring with stroke-dashoffset animation and center percentage
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add progress-circleOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { ProgressCircle } from "@/components/ui/progress-circle"; <ProgressCircle value={70} min={0} max={100} label="Completion" />Source code
progress-circle.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxprogress-circle.tsx99 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface ProgressCircleProps extends React.HTMLAttributes<HTMLDivElement> { value: number; min?: number; max?: number; indeterminate?: boolean; label?: string; size?: number;} export function ProgressCircle({ value, min = 0, max = 100,Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { ProgressCircle } from "@/components/ui/progress-circle"; <ProgressCircle />| Prop | Type | Description |
|---|---|---|
| value | number | Controlled value. |
| min | number | Minimum allowed numeric or date bound. (Default: 0) |
| max | number | Maximum allowed numeric or date bound. (Default: 100) |
| indeterminate | boolean | Toggles indeterminate. (Default: false) |
| label | string | Accessible label text rendered or attached to the control. |
| size | number | Component size preset. (Default: 120) |