hp-spinner
Indeterminate-progress spinner — a hex outline rotating at a constant rate. Default tone is
--hp-primary ("system busy"); pair with tone="positive|warn|alert|error"
when the wait is tone-specific. Respects prefers-reduced-motion by slowing the
rotation (rather than freezing it) so the visual still reads alive.
Install
bun add @hexpunk/core lit import "@hexpunk/core"; Properties
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
size | size | "sm" | "md" | "lg" | "md" | Cluster size — `sm` (7 hexes inline), `md` (19 hexes default), `lg` (37 hexes full-page). |
tone | tone | HpSpinnerTone | "neutral" | Semantic tone. Default `neutral` reads as --hp-primary ("system busy"); others map to the matching tone stroke. |
When to use
tone to the operation's outcome / severity (positive for a sync,
warn for a check, alert / error for retries against failing endpoints).
Accessibility
Auto role="status" and aria-label="Loading" so screen readers
announce the spinner as a live region. Override aria-label for context-
specific waits ("Syncing changes", "Compiling shaders", etc.).
No per-component entries in CHANGELOG.md yet.