Skip to content
Ballpoint

Progress

A pill shaded in as the work gets done; indeterminate slides a patch of shading along.

From shadcn/ui
Built on Base UI Progress
Uploading
x
Hatched
x
Done
x
Working on it
x

Installation

pnpm dlx shadcn@latest add @ballpoint/progress

Usage

tsx
import { Progress, ProgressLabel, ProgressValue } from "@/components/ui/progress"

<Progress value={40}>
  <ProgressLabel>Uploading</ProgressLabel>
  <ProgressValue />
</Progress>

Examples

Controlled

Drive the value from state and watch the shading follow.

Chapter progress
x

Sizes

A hairline, the default, and a fat bar to fill in.

sm
x
default
x
lg
x

Upload

Waits indeterminate, then fills in uneven bursts, and is done.

notebook.pdf
x

Steps

A step counter that moves the bar a quarter at a time.

Step 1 of 4: Pick a pen
x

API reference

value
number | null

null for indeterminate: a patch of shading slides along.

size
default "default"
"sm" | "default" | "lg"

Track height: 8, 12 or 18px.

seed
string | number

Pins the drawing.

Every other prop goes to Base UI's Progress.

Pen settings

The drawing also takes draw, roughness, passes, radius, fill, weight and speed, as props or from the nearest InkProvider. What each one does.