j3w1 / theme

j3w1 / theme4.0.0

j3w1 / command

  • SPEC Overview
  • SPEC Foundations
  • SPEC Components
  • SPEC Patterns
  • SPEC Tokens
  • SPEC Tools
  • SPEC Workbench
  • SPEC Form builder
  • SPEC Task kit
  • SPEC Recipes
  • SPEC Figma bridge
  • SPEC Report an issue
  • SPEC Implement
  • SPEC For agents
  • SPEC Ports
  • SPEC Releases
  • SPEC Specification
  • DEMO Vue application demo

Loading indicator

A static ⋯ glyph with a worded label inside an aria-busy container; inline next to text or as a centred block. There is no spinner.

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

Live variants

inline

Loading fonts
Markup
<j3w1-loading-indicator id="example-loading-indicator-inline"><span class="loading-indicator loading-indicator-inline" role="status" aria-busy="true"><span class="loading-indicator-glyph" aria-hidden="true">⋯</span><span class="loading-indicator-label">Loading fonts</span></span></j3w1-loading-indicator>

block

Loading the component list
Markup
<j3w1-loading-indicator id="example-loading-indicator-block"><div class="loading-indicator loading-indicator-block" role="status" aria-busy="true">
  <span class="loading-indicator-glyph" aria-hidden="true">⋯</span>
  <span class="loading-indicator-label">Loading the component list</span>
</div></j3w1-loading-indicator>

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@4.0.0
import '@j3w1/ui/tokens.css';
import '@j3w1/ui/styles/loading-indicator.css';
import '@j3w1/ui/register/loading-indicator';

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@4.0.0 j3w1-ui copy loading-indicator --out ./vendor/j3w1/loading-indicator

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

Loading indicator loading-indicator

  • Family: Feedback and overlays
  • Maturity: stable
  • Priority: R1
  • Since: 0.1.0
  • Native control: native container with aria-busy=true and role=status; the glyph is aria-hidden and the label carries the meaning — APG pattern
  • specified
  • demonstrated

A static ⋯ glyph with a worded label inside an aria-busy container; inline next to text or as a centred block. There is no spinner.

Report an issue with this component

Tokens

Focus a role to inspect its values; follow its link for persistent usage and source details.

PartRoleValueUse
glyph.textcolor.text.mutedapproveduse#d4868bD-041 owner correction: rose is the default UI and reading foreground; near-white is reserved for document headings, highlights and contrast-critical fills.
label.textcolor.text.defaultapproveduse#e99499D-041 owner correction: rose is the default UI and reading foreground; near-white is reserved for document headings, highlights and contrast-critical fills.
block.bgcolor.surface.defaultapproveduse#0d0707D-041 surface.default: color.primitive.modern.panel.
block.bordercolor.border.dividerapproveduse#482b2bD-041 border.divider: color.primitive.modern.divider.

State matrix

Every declared state and combination, statically rendered; the default cell is live. Sizes: compact, comfortable (switch with the density control above).

StateInlineBlock
default
Loading fonts
Loading the component list
reduced-motion

Purpose

Marks the wait between a request and its result when there is nothing to measure: a list being fetched, a field being validated. There is no spinner; the static ⋯ a loading control shows appears here beside a worded label.

Anatomy

Inline, glyph and label follow the text they qualify; as a block they sit centred, inside a color.border.divider edge, where the content will appear.

States

StateVisualNon-colour channel
defaultthe static ⋯ and the labelaria-busy="true"; the glyph; the worded label
reduced-motionidentical: nothing to reduceprefers-reduced-motion

Not a control: no hover, focus or disabled state.

Keyboard

Never focusable. When loading replaces content that had focus, focus moves to the container’s heading or parent region, never the indicator, and returns to the result when it arrives.

Accessibility

aria-busy lets assistive technology wait for the subtree to settle and announce the label once. The label names the object (“Loading fonts”) and is always visible, inline as in a block; the glyph never appears without it. Nothing moves, so there is no reduced-motion branch to get wrong. Label and glyph meet 4.5:1.

Portability

Text only; a toolkit’s spinner widget is not used. A host that insists on an activity indicator records the deviation and keeps it within the 150 ms motion budget with a reduced-motion branch.

Non-examples

A spinner or rotating ring. Animated dots. A shimmering skeleton. A full-page overlay blocking input for a fetch. A glyph with no label. An indicator that takes focus. A dimmed, reduced-opacity container.

Contrast report

6 declared pairs measured on resolved sRGB values with the WCAG 2.x formula; 0 waived (decorative only), 0 failing. A pass is a design target for the named role, not an application-wide conformance claim.

PairStateKindForegroundBackgroundRatioMinResult
loading-indicator default textdefaulttextcolor.text.default #e99499color.surface.canvas #0000009.164.5pass
loading-indicator reduced-motion textreduced-motiontextcolor.text.default #e99499color.surface.canvas #0000009.164.5pass
glyph on the canvas—textcolor.text.muted #d4868bcolor.surface.canvas #0000007.584.5pass
block label on the panel surface—textcolor.text.default #e99499color.surface.default #0d07078.724.5pass
block glyph on the panel surface—textcolor.text.muted #d4868bcolor.surface.default #0d07077.224.5pass
block edge (decorative)—uicolor.border.divider #482b2bcolor.surface.canvas #0000001.661pass

Keys

KeyAction
TabNothing; the indicator is not focusable and never traps focus; the content it replaces keeps its tab stops when it returns.

For agents

Component JSON ·Implementation brief ·Build a task kit ·

Related: progress skeleton empty-state toast

Stress fixtures: FX-320 FX-ZOOM-200 FX-I18N FX-RTL FX-RM FX-HC FX-STATE-MATRIX