Skeleton

A placeholder while content loads: a shimmering block, a circle or text lines; with loaded it shows its content.

Source on GitHub

ray-remote 0.4.1 is ready. Toggle loaded
Code

API

For AI agents: this API as Markdown, or every component in llms-full.txt.

<ray-skeleton> · RaySkeleton

aria-busy="true" on the host while loading; the placeholder is aria-hidden.

PropertyAttributeTypeDefaultDescription
widthwidthstringWidth (CSS length, a number is px). Default: 100% (a circle: 2.5rem).
heightheightstringHeight of a block or of each line (CSS length, a number is px). Default: 1rem.
circlecircle reflectsbooleanA circle (avatar placeholder): its diameter is width, else height.
lineslines reflectsnumberNumber of text lines (the last one is shorter).
radiusradius reflectsstringCorner radius: xs…xl, full or a CSS length. Default: sm.
animationanimation reflectsshimmer | pulse | noneshimmerThe loading effect (always none with reduced motion).
loadedloaded reflectsbooleanShows the slotted content instead of the placeholder.
SlotDescription
(default)The real content, shown with loaded.
PartDescription
skeletonThe placeholder container.
boneEach block or line.