---
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/"
---

# Empty

An empty state, what a view or a section shows when it holds nothing yet, with a line of help and an action to add the first item, for React and Tailwind CSS. Part of Goop Pro.

Pro. Its export: `Empty`.

## Try it

Pick a row look (the row alone, the row with its quiet add button) or switch the variant and take away or bring back its picture, its line under the title and its action.

New note makes nothing: its press is counted.

## When to use

- An empty state, what a view or a section shows when it holds nothing yet, with a line of help and an action to add the first item.
- Also called: empty state.

## 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 Empty 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-empty.json --yes
```

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

## Usage

```tsx
import { Button, ButtonIcon } from '@/components/ui/goop/button';
import {
  Empty,
  EmptyContent,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from '@/components/ui/goop/empty';
import { IconTile, IconTileIcon } from '@/components/ui/goop/icon-tile';
import { Card, CardDescription, CardMedia, CardText, CardTitle } from '@/components/ui/goop/card';
import { CardList } from '@/components/ui/goop/card-list';

function NoSessionNotes({ onStart, onImport }: { onStart: () => void; onImport: () => void }) {
  return (
    <Empty variant="page" className="h-full">
      <EmptyHeader>
        <EmptyTitle asChild>
          <h1>Session notes</h1>
        </EmptyTitle>
        <EmptyDescription>Notes from each interview land here, ready to read and share.</EmptyDescription>
      </EmptyHeader>
      <Card variant="outline">
        <CardList aria-label="How session notes work">
          <li>
            <CardMedia>
              <IconTile className="bg-destructive-icon">
                <IconTileIcon icon="video" />
              </IconTile>
            </CardMedia>
            <CardText>
              <CardTitle>Run an interview</CardTitle>
              <CardDescription>Record it in the room or on a call.</CardDescription>
            </CardText>
          </li>
        </CardList>
      </Card>
      <EmptyContent>
        <Button variant="inverse" size="lg" onClick={onStart}>
          Start a session
        </Button>
        <Button variant="outline" size="lg" onClick={onImport}>
          Import a transcript
        </Button>
      </EmptyContent>
    </Empty>
  );
}

function NoNotes({ onAdd }: { onAdd: () => void }) {
  return (
    <Empty variant="outline">
      <EmptyHeader>
        <EmptyTitle>No interview notes yet</EmptyTitle>
        <EmptyDescription>Notes from a session show up here.</EmptyDescription>
      </EmptyHeader>
      <EmptyContent>
        <Button variant="ghost" size="row" onClick={onAdd}>
          <ButtonIcon icon="plus" />
          New note
        </Button>
      </EmptyContent>
    </Empty>
  );
}

function NoSessions({ onBook }: { onBook: () => void }) {
  return (
    <Empty>
      <EmptyHeader>
        <EmptyMedia>
          <IconTile>
            <IconTileIcon icon="calendar" />
          </IconTile>
        </EmptyMedia>
        <EmptyTitle>No sessions booked</EmptyTitle>
        <EmptyDescription>Book a time with each person you recruited.</EmptyDescription>
      </EmptyHeader>
      <EmptyContent>
        <Button onClick={onBook}>Book a session</Button>
      </EmptyContent>
    </Empty>
  );
}
```

- Fits: account, app, chat, flow, inbox, list, overview, record, states (their recipes).
- Give the page the view's height for it to centre on it.
- height, width, padding, gap, corner, border, background, text: add no class for these.

## API reference

### Options

- `variant: page | default | outline = default`

### Parts

- `EmptyHeader` — The words' column
- `EmptyMedia` — The caller's picture or icon (an IconTile, an Avatar)
- `EmptyTitle` — The few words; takes asChild
- `EmptyDescription` — One short sentence under the title saying why the space is empty or what to do next
- `EmptyContent` — The row of actions under the words; put the theme's Buttons in it, spaced to match the empty state

- Class recipes (cva): emptyVariants (Empty)
- data-slot values (to select a part by): empty, empty-content, empty-description, empty-header, empty-media, empty-row, empty-title

## Keyboard

- Tab: move to the caller's actions, the theme's Buttons; the empty state itself takes no focus

## Accessibility

- The part itself answers the keys above.

## 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

- [Button](/themes/meadow/components/button): A button with words that runs an action, in several looks and sizes, on a page, in a row or in a sidebar.
- [Icon tile](/themes/meadow/components/icon-tile): A small square holding one icon that marks what a row, a card or a step is about.
- [Card](/themes/meadow/components/card): A framed surface that holds one piece of content, a list of rows or a section's words.
- [Card list](/themes/meadow/components/card-list): A short list of rows inside an outline card, for what is recent, due or shared.
