Skip to content

Skeleton

Use to show a placeholder while content is loading.

Examples

Default

vue
<div class="flex items-center space-x-4">
  <Skeleton class="h-12 w-12 rounded-full" />
  <div class="space-y-2">
    <Skeleton class="h-4 w-62.5" />
    <Skeleton class="h-4 w-50" />
  </div>
</div>

Props

Skeleton

PropTypeDefaultDescription
classstring-Custom classes to apply to the skeleton.

Slots

Skeleton

SlotDescription
defaultThe content of the skeleton.