compacto-ui

Search documentation

Jump to a page or a component.

Skeleton

Loading placeholder. aria-hidden, no intrinsic size.

server-safe

Preview

Installation

No install — ask an AI agent to copy this component from registry.json.

import { Skeleton } from "@/components/ui/skeleton";

Notes

  • Server-safe — a Server Component can render a loading shell without pulling in a client boundary.
  • aria-hidden, so a screen reader hears the loading state from whatever live region you own rather than from a wall of empty boxes.
  • No intrinsic dimensions. Size it with className.

Props

The props worth knowing. Everything else passes straight through to the underlying element, including className, which is merged last so it always wins.

PropTypeDefaultDescription
classNamestring—Where the size lives: h-4 w-32, and a different radius if needed.