Loading preview
Bar Loader
LoadersA thin indeterminate progress bar for pages and cards that are loading.
Circular progress with the value in the middle, exposed as an accessible progress bar.
npx shadcn@latest add @venusui/progress-ringRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/progress-ring.tsxThe code behind the preview above.
progress-ring-demo.tsx
import { ProgressRing } from "@/components/ui/progress-ring"
export default function ProgressRingDemo() {
return (
<div className="flex items-center gap-8">
<ProgressRing value={72} label="Upload progress" />
<ProgressRing value={3} max={5} size={72} strokeWidth={6} label="Onboarding steps completed">
3/5
</ProgressRing>
</div>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | — | Current progress, from 0 to max. Required. |
| max | number | 100 | Value at which the ring is full. |
| size | number | 96 | Diameter in pixels. |
| strokeWidth | number | 8 | Ring thickness in pixels. |
| label | string | — | Accessible name, e.g. “Upload progress”. Required. |
| children | ReactNode | percentage | Content in the middle, e.g. 3/5. |
All <div> props except children, which is listed above.
cn helper at @/lib/utils. Works in Server Components.stroke-primary (your theme’s primary color); edit it in the file, or pass className="[&_circle:last-child]:stroke-emerald-500".max={5} and children="3/5".role="progressbar" with min, max and current value, so screen readers announce progress.-90deg to start at 12 o’clock. Keep the -rotate-90 class.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.A thin indeterminate progress bar for pages and cards that are loading.
Three dots that rise and fall in turn, for typing or inline loading states.
A thin bar that fills as the reader scrolls through a page or container.