sn-progress-bar
v0.0.3
Published
Angular progress bar with determinate/indeterminate modes and themes - SnUI Library
Downloads
284
Maintainers
Readme
sn-progress-bar
A linear progress bar component for Angular with determinate and indeterminate modes, multiple themes, and size variants.
Installation
npm i sn-progress-barUsage
import { SnProgressBarComponent } from 'sn-progress-bar';
@Component({
imports: [SnProgressBarComponent],
template: `
<sn-progress-bar [value]="75" theme="success" size="md" [showLabel]="true"></sn-progress-bar>
<sn-progress-bar [indeterminate]="true" theme="warn"></sn-progress-bar>
`
})Inputs
| Input | Type | Default | Description |
|---|---|---|---|
| value | number | 0 | Current progress (0–100) |
| max | number | 100 | Maximum value |
| indeterminate | boolean | false | Show animated loading stripe |
| size | 'sm' \| 'md' \| 'lg' | 'md' | Track height |
| theme | 'primary' \| 'success' \| 'warn' \| 'danger' \| 'info' | 'primary' | Color scheme |
| showLabel | boolean | false | Show percentage label |
| labelText | string | '' | Custom label prefix |
