j3w1 / ProgressVue · HTML · React · Astro

J3W1 / DESIGN SYSTEM

Progress

A native progress element with a label and value; determinate fills with the primary colour, indeterminate shows static 45° stripes, never an animation.

stable · LIGHT DOM · 1.1.0

Light DOM retains static content, native semantics, label relationships and host composition without duplicating controls.

Live variants

determinate

62%
62%

<j3w1-progress id="example-progress-determinate"><div class="progress">
  <div class="progress-header">
    <label class="progress-label" for="example-progress-determinate-pg-upload">Uploading theme.json<span class="progress-error-glyph" aria-hidden="true"> ✕</span></label>
    <span class="progress-value">62%</span>
  </div>
  <progress class="progress-bar" id="example-progress-determinate-pg-upload" max="100" value="62">62%</progress>
</div></j3w1-progress>

indeterminate

In progress

<j3w1-progress id="example-progress-indeterminate"><div class="progress">
  <div class="progress-header">
    <label class="progress-label" for="example-progress-indeterminate-pg-scan">Scanning fonts<span class="progress-error-glyph" aria-hidden="true"> ✕</span></label>
  </div>
  <progress class="progress-bar" id="example-progress-indeterminate-pg-scan" aria-valuetext="In progress, total unknown">In progress</progress>
</div></j3w1-progress>

with-label

14 of 67
14 of 67

Writing exports/components/date-picker.json

<j3w1-progress id="example-progress-with-label"><div class="progress">
  <div class="progress-header">
    <label class="progress-label" for="example-progress-with-label-pg-export">Exporting components<span class="progress-error-glyph" aria-hidden="true"> ✕</span></label>
    <span class="progress-value">14 of 67</span>
  </div>
  <progress class="progress-bar" id="example-progress-with-label-pg-export" max="67" value="14">14 of 67</progress>
  <p class="progress-detail">Writing exports/components/date-picker.json</p>
</div></j3w1-progress>

Install and register

Use the exact version. If npm publication is pending, install the release tarball from the installation guide.

npm install --save-exact @j3w1/ui@1.1.0
import '@j3w1/ui/tokens.css';
import '@j3w1/ui/styles/progress.css';
import '@j3w1/ui/register/progress';

Insert the maintained markup above after loading these imports. Its native children provide accessible names and form behavior; the empty custom tag alone does not create a control.

Vue SFC, React, Astro and plain HTML integration →

Copy the complete implementation

npx --package=@j3w1/ui@1.1.0 j3w1-ui copy progress --out ./vendor/j3w1/progress

The CLI verifies every file before writing and refuses overwrites. Serve the output over HTTP and open index.html. Keep its modules, CSS, tokens and licence notices together.

Public API

attributes

NameType / signatureMeaning
disabledCustomEventDisable the native controls owned by this instance.
loadingCustomEventMark the primary control busy and prevent duplicate activation.

properties

NameType / signatureMeaning
disabledbooleanDelegates disabled state to native children.
namestringNative control name; application form keys remain explicit.

methods

NameType / signatureMeaning
refresh(): voidReconnect behavior after replacing native child structure.
focus(options?: FocusOptions): voidFocus the first usable native control.

events

NameType / signatureMeaning

Dependencies and verification

Registered components: none. Style dependencies: none.

Package presence establishes an available implementation. Actual passes depend on the tested artifact and environment. Read specification execution evidence; read packed-consumer evidence; inspect the complete state matrix.

Full implementation manifest, API and token dependency closure

Canonical specification

Purpose

Shows how far a known task has gone, or that an unbounded one is running. It reports; it never blocks. A task that can be cancelled has a button beside the bar. A short wait with no bar is the loading indicator.

Anatomy

The header row with the label in color.text.bright and the value in color.text.default; the bar, a native progress element whose track is color.interaction.pressed.bg behind a 1px color.border.control and whose fill is color.action.primary.bg; an optional detail line in color.text.muted.

States

StateVisualNon-colour channel
defaultfill color.action.primary.bg on the track; the value textthe native value; the percentage text
busythe whole track shows static 45° stripes of color.action.primary.bg on color.interaction.pressed.bg; no value textaria-busy; aria-valuetext; the stripe pattern; no animation
errorfill → color.status.danger.fill; the label gains the ✕ glyph in color.status.danger.text; the detail line says what failedglyph; worded detail
reduced-motionidentical to default and busy: nothing animates in any stateprefers-reduced-motion

Indeterminate work is the busy state; the determinate variant enters it while the total is unknown and leaves it once known.

Keyboard

None. The progress element is not focusable and receives no key. A cancel button next to the bar is an ordinary button with its own tab stop.

Accessibility

The label is a real <label for> on the progress element, so its name is programmatic; the value is in the native value and repeated in text. Indeterminate bars set aria-valuetext (“Preparing”), and the container sets aria-busy for the duration. Completion and failure are announced through a polite live region, not by the bar. Contrast: label 10.37:1, value 8.65:1, detail 5.81:1, track boundary 4.45:1, error fill 3.36:1 against the track. The primary fill against the track measures 1.51:1 and is waived because the value is stated in text; a host that must meet 3:1 graphically raises the track to color.surface.canvas.

Portability

A track, a fill and a hatched pattern. Toolkits with a native bar map the fill to the primary colour and disable pulse animation; toolkits without gradients draw the stripes with a hatched brush or alternating characters.

Non-examples

A spinner. Animated or “barber-pole” stripes. A shimmering skeleton in place of a bar. A circular ring. A rounded pill-shaped bar. Colour-only failure without the glyph and text. A bar with no label. A bar that blocks input.

j3w1 / command

  • SPEC Overview
  • SPEC Foundations
  • SPEC Components
  • SPEC Patterns
  • SPEC Tokens
  • SPEC Tools
  • SPEC Implement
  • SPEC For agents
  • SPEC Ports
  • SPEC Releases
  • DEMO Vue application demo
  • SPEC Complete UI theme specification