# Quote

A testimonial / tweet-style Open Graph image with a large quote and an author 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>
  <Quote />
</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/quote.json
    ```
  </TabsContent>

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

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

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

## Usage [#usage]

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

import { Quote } from "@/components/og/quote";

export function GET() {
  return new ImageResponse(
    <Quote
      author="Grace Hopper"
      handle="@gracehopper"
      quote="This is hands down the fastest way to ship beautiful OG images."
    />,
    { width: 1200, height: 630 }
  );
}
```

## API Reference [#api-reference]

### Quote [#quote]

| Prop     | Type     | Default |
| -------- | -------- | ------- |
| `quote`  | `string` | `-`     |
| `author` | `string` | `-`     |
| `handle` | `string` | `-`     |
| `avatar` | `string` | `-`     |
| `accent` | `string` | `-`     |
