HextaUI

Progress: Indeterminate

Pass value={null} while the total is unknown. A segment slides across the track, and once a number arrives the fill grows from the start.

Connecting to server…
x
import { Progress, ProgressLabel } from "@/components/ui/progress"

export function ProgressIndeterminate() {
  return (
    <div className="w-full max-w-sm">
      <Progress value={null}>
        <ProgressLabel>Connecting to server…</ProgressLabel>
      </Progress>
    </div>
  )
}

This adds the example as components/examples/progress/indeterminate.tsx, together with the Progress component and the HextaUI theme tokens it needs.

pnpm dlx shadcn@latest add https://hextaui.com/r/progress-indeterminate.json

To add only the component, follow the Progress installation.

Props in this example

The Progress props this example sets, from the API reference.

PropTypeDefault
valuenull makes the bar indeterminate.
number | null–

Every prop is in the Progress API reference.

See them all, with keyboard support and accessibility notes, on the Progress page.