Installation
$ pnpm dlx shadcn@latest add @ogimagecn/shadcn-registry-6
Usage
import { ImageResponse } from "next/og";
import { ShadcnRegistry6 } from "@/components/og/shadcn-registry-6";
export function GET() {
return new ImageResponse(
<ShadcnRegistry6
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
ShadcnRegistry6
| Prop | Type |
|---|---|
title | string |
description | string |
brand | string |
logo | string |