Installation
$ pnpm dlx shadcn@latest add @ogimagecn/editorial
Usage
import { ImageResponse } from "next/og";
import { Editorial } from "@/components/og/editorial";
export function GET() {
return new ImageResponse(
<Editorial
kicker="Feature"
title="Designing at the edge of the canvas"
meta="Issue 04"
brand="ogimagecn"
/>,
{ width: 1200, height: 630 }
);
}API Reference
Editorial
| Prop | Type |
|---|---|
kicker | string |
title | string |
meta | string |
ghost | string |
brand | string |
logo | string |