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/domImport
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
| Input | Type | Default | Description |
|---|---|---|---|
value | number | null | None | Progress toward max, clamped to 0–max; omit it or pass null when the length is unknown. |
max | number | 100 | The value that means complete. |
label | string | None | Text above the bar that also names it. |
showValue | boolean | false | Shows 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-labelledby | string | None | Names the bar when there is no visible label; applied to the progressbar track, not the host. |