Componentfeedback0.6 KB gzipZero dependencies

Progress Circle

Circular progress ring with stroke-dashoffset animation and center percentage

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add progress-circle

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { ProgressCircle } from "@/components/ui/progress-circle"; <ProgressCircle value={70} min={0} max={100} label="Completion" />

Source code

progress-circle.tsx + 1 helper

Zero 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 />
PropTypeDescription
valuenumberControlled value.
minnumberMinimum allowed numeric or date bound. (Default: 0)
maxnumberMaximum allowed numeric or date bound. (Default: 100)
indeterminatebooleanToggles indeterminate. (Default: false)
labelstringAccessible label text rendered or attached to the control.
sizenumberComponent size preset. (Default: 120)