Skip to Content
zjkm-ui
Components

Indeterminate Progress

A bar for work of unknown length.

Props
<IndeterminateProgress />

Installation

npx shadcn@latest add https://ui.zjkm.tech/r/indeterminate-progress.json
import { 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

PropTypeDefaultDescription
labelstring"Loading"Accessible name.
colorstring"#6366f1"Bar colour.
classNamestringClasses for the track.

With reduced motion, the bar fills the track and gently brightens and dims instead of sliding.

On this page