BrowseProgress

Feedback

Glass Progress

A bar that fills as work completes, or sweeps when the end is unknown.

Preview

Uploading35%

Installation

Install the package once, then import the parts you use into a standalone component.

Install

npm install ngx-vitreo @angular/cdk @floating-ui/dom
Import

import { GlassProgress } from 'ngx-vitreo';

@Component({
  imports: [GlassProgress],
  // ...
})

Usage

Usage

<glass-progress label="Uploading" showValue [value]="62" />
<glass-progress aria-label="Working" [value]="null" />
<glass-progress size="sm" [value]="30" aria-label="Small" />

API reference

GlassProgress

glass-progress

InputTypeDefaultDescription
valuenumber | nullNoneProgress toward max, clamped to 0–max; omit it or pass null when the length is unknown.
maxnumber100The value that means complete.
labelstringNoneText above the bar that also names it.
showValuebooleanfalseShows the rounded percentage beside the label while the value is known.
size'sm' | 'md' | 'lg''md'Track height: 0.25rem, 0.5rem or 0.75rem.
aria-label / aria-labelledbystringNoneNames the bar when there is no visible label; applied to the progressbar track, not the host.