Chapter 08 of 11·Reference

API

The complete surface: one function, a handful of options, one build-time helper.

skelly(element, options?)
Core function. Replaces element's content with a skeleton; returns a release() function that restores it.
options.visual
"shimmer" | "pulse" | "optimistic" | "static" — default "shimmer".
options.rows
For tables and lists: number of placeholder rows to render while data loads. Defaults to the measured count.
options.media
"block" | "dominant-color" | "blurhash" — how image areas render while loading.
snapshot(route, options?)
Build-time helper. Renders a route headlessly and emits its full-page skeleton spec.
← previousThemingnext →Skelly CLI