hp-progress
Determinate progress indicator. Track + fill bar with the current value as a percentage
of (max − min). indeterminate animates a sliding ribbon for known-progress-
but-unknown-percent waits. For "system busy" without progress info, prefer
<hp-spinner>.
Install
bun add @hexpunk/core lit import "@hexpunk/core"; Properties
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
min | min | number | 0 | Lower bound. Default 0. |
max | max | number | 100 | Upper bound. Default 100. |
value | value | number | 0 | Current value. Clamped to [min, max]. Ignored when `indeterminate` is set. |
indeterminate | indeterminate | boolean | false | Indeterminate mode — animates a sliding ribbon, hides the numeric value from assistive tech. Use when progress is knowable but a specific number isn't available. |
tone | tone | HpProgressTone | "neutral" | Semantic tone for the fill — neutral (primary), positive, warn, alert, error. |
CSS Parts
| Part | Description |
|---|---|
track | The track that the fill sits inside |
fill | The filled portion (or sliding ribbon when indeterminate) |
Accessibility
role="progressbar" with aria-valuemin / max / now.
indeterminate drops aria-valuenow so assistive tech reports
progress as "in progress" without a misleading number.
No per-component entries in CHANGELOG.md yet.