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

Alert

Pro

A message about the state of something that stays inline in the page until it changes, for React and Tailwind CSS. Part of Goop Pro.

Switch the kind (its icon and colour follow), retitle it, make its description long or take it away (the title alone), take its action away; the Retry action counts its presses. Retry reaches nothing: it only counts.

When to use

  • A message about the state of something that stays inline in the page until it changes.
  • Also called: callout or notice.

When not to use

  • For a passing notice use Toast.

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 Alert 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>/trail-alert.json --yes
PROMPT
Add the Goop Alert to this project. The install steps are at https://goop.so/docs/install.md

Usage

TSX
import { Alert, AlertIcon, AlertTitle, AlertDescription, AlertAction } from '@/components/ui/goop/alert';
import { Button } from '@/components/ui/goop/button';

<Alert variant="warning">
  <AlertIcon />
  <AlertTitle>Sync paused</AlertTitle>
  <AlertDescription>Changes are kept on this device until the connection is back.</AlertDescription>
  <AlertAction>
    <Button size="sm">Retry</Button>
  </AlertAction>
</Alert>
  • Fits: account, states (their recipes).
  • height, width: add no class for these.

API reference

Options
OptionTypeWhat it does
variantdefault | info | success | warning | destructive = default
Parts
PartWhat it is
AlertIconThe kind's pack icon in its 16 px box, at the start of the row; icon?: IconName — A pack icon name in place of the kind's
AlertTitleThe alert's few words
AlertDescriptionThe message under the title
AlertActionThe caller's action at the end of the row (the theme's small Button, or its Link)
  • Class recipes (cva): alertVariants (Alert)
  • data-slot values (to select a part by): alert, alert-action, alert-content, alert-description, alert-icon, alert-title

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/trail/components/alert.md · the page as Markdown
Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-alert.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.