Primitives
Display an indicator representing the progress of a task.
Import the Progress primitives from ng-primitives/progress.
import {
NgpProgress,
NgpProgressTrack,
NgpProgressLabel,
NgpProgressValue,
NgpProgressIndicator,
} from 'ng-primitives/progress';
Assemble the avatar directives in your template.
<div ngpProgress [ngpProgressValue]="percentage">
<label ngpProgressLabel></label>
<span ngpProgressValue></span>
<div ngpProgressTrack>
<div ngpProgressIndicator></div>
</div>
</div>
Create a reusable component that uses the progress directives.
Generate a reusable progress component using the Angular CLI.
ng g ng-primitives:primitive progress
path: The path at which to create the component file.prefix: The prefix to apply to the generated component selector.component-suffix: The suffix to apply to the generated component class name.file-suffix: The suffix to apply to the generated component file name. Defaults to component.styles: How component styles should be generated. css (default) includes the full example styles; unstyled omits them entirely so you can style the component yourself.example-styles (deprecated): still supported for compatibility - true maps to styles: css, false maps to styles: unstyled.The following directives are available to import from the ng-primitives/progress package:
Adheres to the WAI-ARIA Progressbar pattern.
Copyright © 2026 Angular Primitives
This site is powered by Netlify