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

# Event proposal card

A calendar event an assistant proposes, ready to add, for a page's column or a chat's reply, for React and Tailwind CSS. Part of Goop Pro.

Pro. Its export: `EventProposalCard`.

## Try it

Press Add to calendar (by pointer, Enter or Space): it turns to Added and the press is counted; press the close and the card goes, Restore event brings it back; switch to a private event, shown to others as free; Tab walks the add and the close.

Add to calendar adds nothing to any calendar: each press is only counted.

## When to use

- A calendar event an assistant proposes, ready to add, for a page's column or a chat's reply.

## 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 Event proposal 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.

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

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

## Usage

```tsx
import { useState } from 'react';
import { EventProposalCard } from '@/components/ui/goop/event-proposal-card';

function PlantingDay({ add, onClose }: { add(): void; onClose(): void }) {
  const [added, setAdded] = useState(false);
  return (
    <EventProposalCard
      title="Hedge planting day"
      time="Nov 21, 9:00 AM – 12:00 PM"
      description="Meet at the barn; the north row goes in first."
      account="mira@example.com"
      added={added}
      onAdd={() => {
        add();
        setAdded(true);
      }}
      onDismiss={onClose}
    />
  );
}
```

- Fits: chat: body; overview, schedule: aside.
- Put it in a page's column or under the assistant's reply, the column's width; stack several 12 px apart (beside a DraftEmailCard). The card removes nothing itself: on close take it away and move the focus to the next card's close (`dismissRef`), or to what brings the proposals back when none is left.
- height, width, gap, corner, background, text: add no class for these.

## API reference

### Options

- `title: ReactNode` — The event's name.
- `time: ReactNode` — When it is: the day and the hours, as the reader reads them.
- `description?: ReactNode` — What it is about, under the time, never cut.
- `account?: ReactNode` — The calendar it goes in: its account, after a calendar icon; none, no line.
- `visibility?: 'public' | 'private' | undefined = 'public'` — Who may see it: `public` (the default, an open lock) or `private` (a closed lock).
- `showAs?: 'busy' | 'free' | undefined = 'busy'` — How it shows the time to others: `busy` (the default) or `free`.
- `onAdd?: (() => void) | undefined` — The add action, pressed (the pointer, Enter or Space).
- `added?: boolean | undefined = false` — The event is added: the action reads its added words, and the card says so politely.
- `onDismiss?: (() => void) | undefined` — The close, pressed: take the card away and move the focus to the next one.
- `dismissRef?: Ref<HTMLButtonElement> | undefined` — The close's own button, for the focus a caller moves to the next card's close.
- `disabled?: boolean | undefined` — The strip's two buttons off: neither takes a press or a Tab stop.
- `labels?: Partial<EventProposalCardLabels> | undefined` — The card's words, each replaceable.

- Types: EventProposalCardLabels = { kind: string; add: string; added: string; addedStatus: string; dismiss: string; public: string; private: string; busy: string; free: string }

## Accessibility

- disabled: the prop disabled

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

- [Inline edit](/themes/meadow/components/inline-edit): Words that read as plain text and become an editable field in place, such as a record's title or a property's value.
- [Month calendar](/themes/meadow/components/month-calendar): A month of events, a row a week and a cell a day, each day listing its events as chips in their colours.
- [Plan card](/themes/meadow/components/plan-card): One plan to pick on a pricing or billing page, with its price, what it holds and its button.
- [Profile card](/themes/meadow/components/profile-card): A person's own page header, for an account, profile, customer or patient page.
