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

Promo card

Pro

A card that offers something (an app to download, a plan to upgrade to, a feature that is new), for a page or a settings pane, for React and Tailwind CSS. Part of Goop Pro.

Press an action (by pointer, Enter or Space): it says what it started under the heading and is counted; switch to one action, a link, and to the card with no picture; Tab walks the actions in order. Download starts nothing and Release notes opens nothing: each press is only said and counted.

When to use

  • A card that offers something (an app to download, a plan to upgrade to, a feature that is new), for a page or a settings pane.

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

Usage

TSX
import { PromoCard } from '@/components/ui/goop/promo-card';
import { useState } from 'react';

function DesktopOffer() {
  const [started, setStarted] = useState<string | null>(null);
  return (
    <PromoCard
      eyebrow="Fieldwork desktop"
      title="Plan site visits from your desk, with reminders"
      description="Works offline on site; the photos sync once you are back in signal."
      status={started}
      icon="calendar"
      actions={[
        { label: 'Download', icon: 'download', onClick: () => setStarted('The download has started.') },
        { label: 'Release notes', href: '/releases' },
      ]}
    />
  );
}
  • Fits: settings, overview: aside.
  • Put it in a page's column or a settings pane, the column's width; one card per offer. Name each action for what it does (Download, Upgrade, Release notes): two at most, the main one first. A press runs your own handler (onClick), or follows href; say what it started in status when it starts something unseen (a download).
  • width, gap, text: add no class for these.

API reference

Options
OptionTypeWhat it does
eyebrow?ReactNodeThe short line over the heading: what is offered (a product, a plan, "New").
titleReactNodeThe heading: what the reader gets.
description?ReactNodeA line under the heading, never cut.
status?ReactNodeWhat an action started, said politely under the heading ("The download has started."); none at rest.
actionsreadonly [PromoCardAction] | readonly [PromoCardAction, PromoCardAction]One or two actions, in their order: each a button (or a link with href).
icon?IconName | undefinedThe pack icon the picture's tile holds, at the card's start; with none, no picture.
  • Types: PromoCardAction = { label: string; icon?: IconName | undefined; onClick?: (() => void) | undefined; href?: string | undefined }

Keyboard

KeyWhat it does
Enter SpaceOn an action button, press it once
EnterOn an action link, follow it

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