Placeholder animé indiquant qu'un contenu est en cours de chargement. Améliore la perception de performance.
<x-ws::skeleton width="full" height="4" />
<x-ws::skeleton width="3/4" height="4" />
<x-ws::skeleton width="full" height="32" rounded="lg" />
| Prop | Type | Défaut | Description |
|---|---|---|---|
width |
string |
full |
Largeur (valeurs Tailwind : full, 1/2, 3/4, 48, etc.) |
height |
string |
4 |
Hauteur (valeurs Tailwind : 4, 6, 8, 12, 32, etc.) |
rounded |
string |
md |
none | sm | md | lg | full |
<div class="space-y-2">
<x-ws::skeleton height="6" width="1/3" rounded="md" />
<x-ws::skeleton height="4" width="full" />
<x-ws::skeleton height="4" width="full" />
<x-ws::skeleton height="4" width="4/5" />
</div>
<div class="border rounded-xl p-4 space-y-3">
<x-ws::skeleton height="40" rounded="lg" />
<x-ws::skeleton height="5" width="2/3" />
<x-ws::skeleton height="4" width="full" />
<x-ws::skeleton height="4" width="full" />
<x-ws::skeleton height="4" width="3/4" />
</div>
<div class="flex items-center gap-3">
<x-ws::skeleton width="10" height="10" rounded="full" />
<div class="flex-1 space-y-2">
<x-ws::skeleton height="4" width="1/2" />
<x-ws::skeleton height="3" width="3/4" />
</div>
</div>
none
sm
md
lg
full