Spinner

A named activity indicator tied to the runtime's real loading state.

The server totals demo values with simulated latency and replaces activity with its answer.

Open in new tab

Each preview is its own Live page in a frame, because this site is a Vue 3.5 app built on the Pulsar starter kit. An open list or popover stays inside its frame; in your application it opens over the page.

Installation

bash
suprnova live:add spinner

Usage

html
{% import "suprnova-ui/spinner/spinner.html" as spinner %}
{% call spinner::spinner(action="calculate", label="Calculating total") %}{% endcall %}

Keyboard and accessibility

suprnova.spinner - indeterminate activity for work in flight (FDB-002). Bound through live:loading.show to a registered action and authored hidden, so the runtime's anti-flicker timing decides when it shows; or the placeholder of a lazy island (lazy=true). The ring is decorative, the label is the accessible content.

API reference

spinner

ParameterDefaultDescription
action""The registered loading target; ignored for a lazy placeholder.
lazyfalseUses the markup as a lazy island's initial placeholder instead of binding an action.
label"Loading"The accessible text naming the loading work.