Skeleton

A layout placeholder revealed by the runtime while its bound action is loading.

Load deterministic project demo records with simulated latency; the runtime owns the loading timing.

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 skeleton

Usage

html
{% import "suprnova-ui/skeleton/skeleton.html" as skeleton %}
{% call skeleton::skeleton(action="refresh", label="Loading projects") %}{% endcall %}

Keyboard and accessibility

suprnova.skeleton - layout-preserving placeholder for work in flight (FDB-002). Bound through live:loading.show to a registered action, it is authored hidden and the runtime reveals it after its own 150 ms delay and keeps it for 200 ms, so a fast action never flashes it; as a lazy island's placeholder (lazy=true) it is the island's initial markup. The bars are decorative; the label is what assistive technology reads.

API reference

skeleton

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.
lines3The number of visible decorative lines, from one to three.
label"Loading"The accessible text naming the loading work.