# Product

A two-column product Open Graph image with brand and copy on the left, a product shot on the right, and a price pill.

> 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>
  <Product />
</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/product.json
    ```
  </TabsContent>

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

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

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

## Usage [#usage]

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

import { Product } from "@/components/og/product";

export function GET() {
  return new ImageResponse(
    <Product
      title="Acme Pro"
      description="Everything you need to ship faster."
      price="$49"
      image="https://example.com/product.png"
    />,
    { width: 1200, height: 630 }
  );
}
```

## API Reference [#api-reference]

### Product [#product]

| Prop          | Type     | Default |
| ------------- | -------- | ------- |
| `brand`       | `string` | `-`     |
| `title`       | `string` | `-`     |
| `description` | `string` | `-`     |
| `price`       | `string` | `-`     |
| `image`       | `string` | `-`     |
| `accent`      | `string` | `-`     |
