@dojo-ng/progress
v0.1.1
Published
Dojo NG progress web component
Readme
@dojo-ng/progress
<dj-progress> — Determinate progress bar.
Part of Dojo NG, a framework-agnostic web component library built on Lit. BSD-3-Clause.
Determinate progress bar. value within min..max; show-output shows percent. Part: bar.
Install
npm install @dojo-ng/progressUsage
Import the package to register the custom element, then use the tag.
show-output prints the percentage.
<dj-progress value="65" show-output></dj-progress>Properties
↻ marks an attribute reflected to the DOM; a dash means the property is set in JavaScript only.
| Property | Attribute | Type | Default |
|---|---|---|---|
| min | min | number | 0 |
| max | max | number | 100 |
| value | value | number | 0 |
| showOutput | show-output | boolean | false |
| label | label | string | — |
Parts: bar
CSS properties: --dj-progress-height (default 8px; Thickness of the progress bar.)
Theming
Styled with Dojo NG --dj-* design tokens and exposes ::part() hooks for targeted overrides.
Accessibility and i18n
Follows the project's WCAG 2.2 AA and localization conventions.
More
Live, interactive examples are at play.dojo-ng.com. For the full API reference, theming, accessibility, and localization guides, see the Dojo NG documentation.
