Base
Pure CSS
Skeleton
The shimmering placeholder while loading; multi-line text, block and circle — swapped in with wire:loading.
Real scenarios
The component as it is used in a product — not a specimen grid.
The roster, mid-fetch
Press reload: the real rows leave, skeletons of the very same shape take their seats, and nothing on the page moves a pixel when the data returns.
- مریم صادقی Product designer active
- سامان دهقان Backend engineer active
- Nguyen Linh Support lead active
A stat card, not yet
Shapes: circle for the avatar, lines for text, block for the sparkline’s seat.
Multi-line paragraphs
lines="3" renders a grid of rows with a shorter last line you steer with width — for article teasers.
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| shape | string | text | text · block · circle. |
| lines | int | 1 | Number of text lines (shape=text only). |
| width / height | string | null | Explicit size like 6rem or 100%. |
Snippet
<div class="pg-row">
<x-nx::skeleton shape="circle" width="3rem" />
<x-nx::skeleton :lines="2" />
</div>