Skeleton

Used to show a placeholder while content is loading.

There is no dedicated skeleton component in Basecoat.

Usage

Simply use the animate-pulse class to create a skeleton.

<div class="flex items-center gap-4">
  <div class="bg-accent animate-pulse size-10 shrink-0 rounded-full"></div>
  <div class="grid gap-2">
    <div class="bg-accent animate-pulse rounded-md h-4 w-[150px]"></div>
    <div class="bg-accent animate-pulse rounded-md h-4 w-[100px]"></div>
  </div>
</div>

Examples

Card