This page as markdown: /skeleton.md · Index for agents: /llms.txt · Everything in one file: /llms-full.txt

Skeleton

Status: stable

Loading placeholder — a muted, shimmering block (rounded-md bg-muted motion-shimmer). Shape it with utility classes; rounded-full for circles.

Keywords: skeleton, loading, placeholder, pending

Usage

Use Skeleton to reserve space and hint at the shape of content while data is loading.

Best practices

Props

Name Type Default Description
...props ComponentPropsWithRef<"div"> — All native div props plus className. Size and shape the placeholder with utilities (h-, w-, size-*, rounded-full).

Tokens used

muted

Motion

Accessibility

Related

Examples

Shapes

import { Skeleton } from "@sableui/react"

<Skeleton className="h-4 w-40" /><Skeleton className="size-10 rounded-full" /><Skeleton className="h-40 w-full" />

Post-card composition

import { Skeleton } from "@sableui/react"

<div className="flex items-center gap-3"><Skeleton className="size-10 rounded-full" /><div className="space-y-2"><Skeleton className="h-3 w-32" /><Skeleton className="h-3 w-20" /></div></div>