Skip to content

Reference

an-progress-bar

Determinate progress, from zero to one.

UIProgressView, Material’s LinearProgressIndicator, NSProgressIndicator, a SwiftUI ProgressView.

progress is a fraction between 0 and 1, not a percentage. For work whose length is unknown, an-activity-indicator is the right control — a progress bar that does not progress is worse than a spinner.

iOS · iPadOS Android macOS tvOS visionOS watchOS Wear OS
iOS · iPadOS Android macOS watchOS
UIProgressView LinearProgressIndicator NSProgressIndicator ProgressView
Prop Type Default
progress number | null 0
color string | null null
<an-progress-bar [progress]="uploaded() / total()" [color]="'#ff5a1f'" />

Every primitive also carries the base props — background, border, opacity, the transforms, animate, the accessibility contract — and every gesture. See Components for the full base, Events for the payloads.