Installation
$ pnpm dlx shadcn@latest add @ogimagecn/grid
Usage
import { ImageResponse } from "next/og";
import { Grid } from "@/components/og/grid";
export function GET() {
return new ImageResponse(
<Grid
title="Build your own OG images"
description="Composable components powered by Satori and the next/og runtime."
brand="ogimagecn"
/>,
{
width: 1200,
height: 630,
}
);
}API Reference
Grid
| Prop | Type |
|---|---|
title | string |
description | string |
brand | string |
logo | string |