Progress Ring

A circular progress indicator that animates to its value, or spins.

no dependenciesMIT · free
18%
18%

Installation

npx shadcn@latest add https://ombakui.com/r/progress-ring.json

Usage

import { ProgressRing } from "@/components/progress-ring";

<ProgressRing value={uploaded} />
<ProgressRing label="Loading" /> {/* no value = spinner */}

Props

PropTypeDefaultDescription
valuenumber–Progress from 0 to 100. Leave undefined for an endless spinner.
sizenumber64Diameter in px.
thicknessnumber6Ring thickness in px.
colorstringyour theme's primary colorRing color.
childrenReactNode–Content in the middle. Defaults to the percentage when a value is set.
labelstring"Progress"Accessible name.
classNamestring–