ogimagecn
Open Graph images, built on Satori
Installation
$ pnpm dlx shadcn@latest add https://ogimagecn.vercel.app/r/logo.json
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" accent="#6366f1" />,
{ width: 1200, height: 630 }
);
}API Reference
Logo
| Prop | Type | Default |
|---|---|---|
brand | string | - |
tagline | string | - |
monogram | string | - |
accent | string | - |
background | string | - |