Controls

Skeleton

Placeholders in the shape of content that is still loading.

npx shadcn-svelte@latest add http://localhost:5173/r/skeleton.json

Shapes

Size and round it with classes. A soft band sweeps across every 2s, transform only; with reduced motion the sweep is replaced by a gentle pulse.

light
Text
Avatar
Button
Image
dark
Text
Avatar
Button
Image

Loading a card

The skeleton keeps the card's exact layout, so nothing shifts when the content arrives.

light
dark