Theme
Skeleton
Loading placeholder animation
Start Here
Start from the smallest working snippet, then move to interactive examples and the full API contract below.
Styled quick start
Copy this entrypoint first. It includes the imports required to get the component on screen.
svelte
<script lang="ts">
import '@dryui/ui/themes/default.css';
import '@dryui/ui/themes/dark.css';
import { Skeleton } from '@dryui/ui';
</script>
<Skeleton width="200px" height="1rem" />Import options
Root package
ts
import { Skeleton } from '@dryui/ui'Per-component subpath
ts
import { Skeleton } from '@dryui/ui/skeleton'Customize
Use the interactive examples to see common variants, states, and composition patterns before building your own.
Text Skeleton
Card Skeleton
svelte
<Flex gap="md" align="start">
<Skeleton variant="circular" width="3rem" height="3rem" />
<div class="skeleton-copy">
<Stack gap="sm">
<Skeleton variant="text" width="60%" />
<Skeleton variant="text" width="90%" />
<Skeleton variant="text" width="75%" />
</Stack>
</div>
</Flex>
<Skeleton variant="rectangular" width="100%" height="12rem" />Compose
The full API contract lives here: props, CSS variables, and the public data attributes you can target when styling.
| Prop | Type | Default | Required | Bindable |
|---|---|---|---|---|
variant | textcircularrectangular | 'text' | — | — |
width | string | — | — | — |
height | string | — | — | — |
Forwards <div> attributes via rest props. Common examples: id, style, role.