Skeleton

Skeleton is a placeholder component that displays while content is loading.

<div className="space-y-4">
  {/* <Skeleton className="h-44 w-64" />
  <div className="flex items-center space-x-4">
    <Skeleton className="size-10 rounded-full" />
    <div className="space-y-2">
      <Skeleton className="h-4 w-44" />
      <Skeleton className="h-4 w-36" />
    </div>
  </div> */}
</div>

Installation

pnpm dlx shadcn@latest add @dotui/skeleton

Usage

Use skeleton components as placeholders while content is loading.

import { Skeleton, SkeletonProvider } from "@/components/ui/skeleton";
<SkeletonProvider isLoading={true}>
  <Skeleton className="h-4 w-32" />
</SkeletonProvider>

Playground

Use the controls below to experiment with different skeleton props and see the live preview and code update.

API Reference

SkeletonProvider

Missing description.

PropType
boolean

Skeleton

Missing description.

Supports all div attributes.

PropType
boolean

Last updated on 12/21/2025

dotUI

Bringing singularity to the web.

Built with passion by @mehdibha.