npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-skeleton.json --yesSkeleton
ProA placeholder in the shape of the content while it loads, for rows, cards and text, for React and Tailwind CSS. Part of Goop Pro.
What an agent sees
- SkeletonMediaThe row's icon slot
- SkeletonContainerA skeleton that its content crossfades over when it arrives
import { SkeletonMedia } from '@/components/ui/goop/skeleton';
import { Skeleton, SkeletonContainer } from '@/components/ui/goop/skeleton';
function NoteSummary({ note }: { note: { title: string; body: string } | null }) {
return (
<SkeletonContainer
loading={note === null}
skeleton={
<div className="flex w-80 flex-col gap-2">
<Skeleton className="h-5 w-40" />
<Skeleton className="h-3" />
<Skeleton className="h-3 w-2/3" />
</div>
}
>
<div className="flex w-80 flex-col gap-2">
<h3 className="text-lg font-medium">{note?.title}</h3>
<p className="text-base text-muted-foreground">{note?.body}</p>
</div>
</SkeletonContainer>
);
}Turn loading off and the row crossfades over its skeleton; switch the look (a list row, or a plain block) and the shape. Nothing loads: the switch stands in for the data arriving.
When to use
- A placeholder in the shape of the content while it loads, for rows, cards and text.
- Also called: loading placeholder or shimmer.
When not to use
- For a short wait on an action use Spinner.
Installation
Paste the prompt below into your coding agent. It reads Goop's install steps, installs the part and its tokens once, then reuses this same Skeleton on every screen instead of drawing a new one: the same height, the same focus ring, the same spacing. As a Pro part, its command comes from Goop's server once you sign in, with a one-time link that lasts ten minutes.
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-skeleton.json --yesAdd the Goop Skeleton to this project. The install steps are at https://goop.so/docs/install.mdUsage
import { SkeletonMedia } from '@/components/ui/goop/skeleton';
import { Skeleton, SkeletonContainer } from '@/components/ui/goop/skeleton';
function NoteSummary({ note }: { note: { title: string; body: string } | null }) {
return (
<SkeletonContainer
loading={note === null}
skeleton={
<div className="flex w-80 flex-col gap-2">
<Skeleton className="h-5 w-40" />
<Skeleton className="h-3" />
<Skeleton className="h-3 w-2/3" />
</div>
}
>
<div className="flex w-80 flex-col gap-2">
<h3 className="text-lg font-medium">{note?.title}</h3>
<p className="text-base text-muted-foreground">{note?.body}</p>
</div>
</SkeletonContainer>
);
}- Fits: states (its recipe).
- height, width, padding, corner, border, background, text, motion: add no class for these.
API reference
| Option | Type | What it does |
|---|---|---|
| variant | default | row = default | |
| shape | rounded-top | square = rounded-top | |
| asChild? | boolean = false | Render the placeholder's look on the one child element instead of a div (a list item). |
| Part | What it is |
|---|---|
| SkeletonMedia | The row's icon slot |
| SkeletonContainer | A skeleton that its content crossfades over when it arrives; loading: boolean — Whether the content is still loading: the skeleton shows after a short wait; skeleton: ReactNode — What stands in while it loads: Skeletons sized as the content will be |
- Class recipes (cva): skeletonVariants (Skeleton)
- data-slot values (to select a part by): skeleton, skeleton-band, skeleton-container, skeleton-container-content, skeleton-container-fallback, skeleton-media
Motion
- The part sets its own motion: add no transition or animation of your own.
Notes for AI
Give your coding agent this page as text instead of screenshots: the parts, the options, the states and the keys. An agent that reads the real part builds the real part, not a lookalike.