Progress

Horizontal progress bar. Set modelValue between 0 and 100.

Default

Static progress at 60%.

Dark previewReplay previewOpen in new tab

Usage

Import the parts you need from the component's folder.

ts
import { Progress } from "@/components/ui/progress";

Animated

Bind to a ref to animate as data loads.

Dark previewReplay previewOpen in new tab

With label

Pair the bar with a caption and percentage row.

Dark previewReplay previewOpen in new tab
Loading…60%

Controlled

Drive the value from your own state, clamped to 0–100.

Dark previewReplay previewOpen in new tab
40%

API Reference

Progress

PropTypeDefaultDescription
modelValuenumber0Progress percentage, 0-100. Supports v-model.
maxnumber100Max value.
classstring—Override height or radius of the track.
indicatorClassstring—Override the colour or style of the filled bar.