Skeleton

A placeholder to show while content is loading.

Installation

npx lily-svelte@latest add skeleton

Installs the style saved in lily.json. For a new Diamond project, run lily-svelte init --style diamond first.

Usage

<script lang="ts">
	import { Skeleton } from '$lib/components/ui/skeleton';
</script>
 
<div class="flex items-center gap-4">
	<Skeleton class="size-12 rounded-full" />
	<Skeleton class="h-4 w-40" />
</div>

Built by levish. The source code is available on GitHub.

Quiet by design.