Components
Indeterminate Progress
A bar for work of unknown length.
<IndeterminateProgress />Installation
npx shadcn@latest add https://ui.zjkm.tech/r/indeterminate-progress.jsonimport { IndeterminateProgress } from "@/components/indeterminate-progress"Using JavaScript? Set tsx: false in components.json and the CLI converts it.
New to shadcn? Run npx shadcn@latest init first. The CLI needs components.json and the @/ import alias.
Usage
A bar for work of unknown length: a segment slides along the track. It's a progressbar with no value, which screen readers announce as busy.
import { IndeterminateProgress } from "@/components/indeterminate-progress";
export function Syncing() {
return <IndeterminateProgress label="Syncing your files" />;
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Loading" | Accessible name. |
color | string | "#6366f1" | Bar colour. |
className | string | Classes for the track. |
With reduced motion, the bar fills the track and gently brightens and dims instead of sliding.