Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-empty.json --yes

Empty

Pro

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.

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.

Terminal
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-empty.json --yes
PROMPT
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
OptionTypeWhat it does
variantpage | default | outline = default
Parts
PartWhat it is
EmptyHeaderThe words' column
EmptyMediaThe caller's picture or icon (an IconTile, an Avatar)
EmptyTitleThe few words; takes asChild
EmptyDescriptionOne short sentence under the title saying why the space is empty or what to do next
EmptyContentThe 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

KeyWhat it does
TabMove 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.

goop.so/themes/meadow/components/empty.md · the page as Markdown
Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-empty.json --yes

Where would you like to start?

Free · now

The Goop plugin

A design system for your AI coding agent, so screen ten matches screen one.

/plugin marketplace add goop-so/skillsthen /plugin install goop@goopCodex, Cursor, ChatGPT, the Claude app and more: Connect Goop
FreePro

The components

Every part live, with its props, its keys and what an agent sees. Whole page and app templates, working with sample data.