---
agent:
  instructions: "Search goop.so for Goop's components, templates, design skill, docs, pricing and terms. Ask in keywords or a plain question, such as \"date picker props\" or \"is the design skill free\"; the answer is the matching page sections in Markdown, each with its address."
  endpoint: "https://goop.so/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Skeleton

A placeholder in the shape of the content while it loads, for rows, cards and text, for React and Tailwind CSS. Part of Goop Pro.

Pro. Its export: `Skeleton`.

## Try it

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.

```sh
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-skeleton.json --yes
```

```text
Add the Goop Skeleton to this project. The install steps are at https://goop.so/docs/install.md
```

## Usage

```tsx
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

### Options

- `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).

### Parts

- `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: `Skeleton`s 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.

## Related

- [Spinner](/themes/meadow/components/spinner): A sign that work is under way and its end is unknown.
- [Separator](/themes/meadow/components/separator): A thin line between two groups of content, across or upright, such as between toolbar items or two columns.
- [Alert](/themes/meadow/components/alert): A message about the state of something that stays inline in the page until it changes.
- [Banner](/themes/meadow/components/banner): A full-width accent pill that announces one thing, such as an app to install or a feature to switch on, with one action at its end.
