# Event

An event / launch Open Graph image with an eyebrow label, large title, and a date · location footer row.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).





<ComponentPreview>
  <Event />
</ComponentPreview>

## Installation [#installation]

<CodeTabs>
  <TabsList>
    <TabsTrigger value="cli">
      Command
    </TabsTrigger>

    <TabsTrigger value="manual">
      Manual
    </TabsTrigger>
  </TabsList>

  <TabsContent value="cli">
    ```bash
    npx shadcn@latest add https://ogimagecn.vercel.app/r/event.json
    ```
  </TabsContent>

  <TabsContent value="manual">
    <Steps>
      <Step>
        Copy and paste the following code into your project.
      </Step>

      <ComponentSource name="event" title="components/og/event.tsx" />

      <Step>
        Update the import paths to match your project setup.
      </Step>
    </Steps>
  </TabsContent>
</CodeTabs>

## Usage [#usage]

```tsx
import { ImageResponse } from "next/og";

import { Event } from "@/components/og/event";

export function GET() {
  return new ImageResponse(
    <Event
      label="Webinar"
      title="Shipping beautiful OG images at scale"
      date="Jun 5, 2026 · 10:00 AM PT"
      location="Online"
    />,
    { width: 1200, height: 630 }
  );
}
```

## API Reference [#api-reference]

### Event [#event]

| Prop       | Type     | Default |
| ---------- | -------- | ------- |
| `label`    | `string` | `-`     |
| `brand`    | `string` | `-`     |
| `title`    | `string` | `-`     |
| `date`     | `string` | `-`     |
| `location` | `string` | `-`     |
| `accent`   | `string` | `-`     |
