Search documentation

Search the documentation and open a page.

Displays an indicator showing the completion progress of a task.

Loading...

Installation

pnpm dlx shadcn@latest add @wirekyt/progress

Composition

<app-progress> ├── [appProgressLabel] (optional) ├── [appProgressTrack] │ └── [appProgressRange] ├── <svg appProgressCircle> (optional) │ ├── <circle appProgressCircleTrack> │ └── <circle appProgressCircleRange> ├── [appProgressValue] (optional) └── [appProgressView] (optional)

Examples

Circle

Loading...

Controlled

Loading...

Default

Loading...

API Reference

<app-progress>

Inputs

InputTypeDefaultDescription
idstring | undefinedgeneratedUnique identifier used to create IDs for the progress parts.
idsPartial<ProgressElementIds> | undefined—Overrides generated identifiers for individual parts.
valuenumber | null | undefined—Current value when controlled. Supports Angular two-way binding.
defaultValuenumber | null | undefinedmidpoint of the rangeInitial value when uncontrolled. Use null for indeterminate progress.
minnumber | undefined0Sets the minimum value.
maxnumber | undefined100Sets the maximum value.
orientation"horizontal" | "vertical""horizontal"Sets the linear progress orientation.
formatOptionsIntl.NumberFormatOptions | undefined{ style: "percent" }Configures the value exposed by [appProgressValue].
translationsProgressIntlTranslations | undefined—Overrides accessible progress text.
localestring | undefinedcurrent localeLocale used to format the progress value.
variant"default" | "dashed""default"Selects the projected track or a generated segmented track.
segmentsnumber10Sets the number of pieces generated by the dashed variant.

Outputs

OutputTypeDescription
valueChangenumber | null | undefinedEmits the updated controlled progress value.
valueDetailsChangeProgressValueChangeDetailsEmits details whenever the value changes.

[appProgressView]

InputTypeDefaultDescription
stateProgressStaterequiredShows the view only for the matching progress state.

Context, Providers, and Utilities

ExportAngular API
ProgressRootProviderDirective [progress-root-provider] providing an externally created API.
ProgressContextStructural directive [progress-context] exposing the root API to a template.
useProgress(options)Creates the signal-backed progress machine in an Angular injection context.
injectProgressContext()Injects the nearest progress root context.
ProgressImportsReadonly collection containing the Angular progress UI and context helpers.

Types

ExportDescription
ProgressApiConnected progress state and actions.
ProgressElementIdsOverrides for generated progress part IDs.
ProgressIntlTranslationsAccessible text used by the progress component.
ProgressMachinePropsConfiguration accepted by the underlying state machine.
ProgressStateDerived progress state such as loading or complete.
ProgressValueChangeDetailsDetails emitted by valueDetailsChange.
ProgressValueTranslationDetailsDetails passed to custom value translations.
ProgressViewPropsProperties used to configure a conditional view.
UseProgressOptionsOptions accepted by useProgress.
UseProgressPropsRoot properties supplied to useProgress.
UseProgressReturnSignal-backed machine returned by useProgress.