Installation
$ pnpm dlx shadcn@latest add @ogimagecn/logo
Usage
import { ImageResponse } from "next/og";
import { Logo } from "@/components/og/logo";
export function GET() {
return new ImageResponse(
<Logo
brand="acme"
tagline="The all-in-one platform"
background="#09090b"
/>,
{ width: 1200, height: 630 }
);
}API Reference
Logo
| Prop | Type |
|---|---|
brand | string |
tagline | string |
monogram | string |
background | string |
logo | string |