Components/Feedback/Skeleton
COMPONENT52.52

Skeleton

Pulsing placeholder shapes for loading content: lines, boxes and composable layouts.


INSTALL

1pnpm dlx @sayagodev/mo add skeleton

Or import the files from the package (no copy):

1import "@sayagodev/mo/css/skeleton.css";

EXAMPLES

Skeleton text
Skeleton card

USAGE

1<output role="status" class="skeleton line"></output>2 3<output role="status" class="skeleton box"></output>

API

NAMEKINDDESCRIPTION
.skeletonclassPulsing placeholder; needs role="status"
.skeleton.lineclassFull-width text line, 1rem tall
.skeleton.boxclass4rem square block for avatars and thumbs

FILES

src/css/skeleton.css
Install:mo add skeleton

THEMING · PLAYGROUND

This is the exact component from the examples above, wearing a completely different theme. Edit the tokens and --mo-* hooks in the editor — autocomplete knows them all — and the preview obeys in real time. Your CSS always wins.

Tokens & hooks — edit live
Global tokens
--accent--radius

Preview

Your CSS

Try it: type --mo- for the component hooks, or edit any value — the preview obeys in real time.