Installation
$ pnpm dlx shadcn@latest add @ogimagecn/shadcn-registry-5
Usage
import { ImageResponse } from "next/og";
import { ShadcnRegistry5 } from "@/components/og/shadcn-registry-5";
export function GET() {
return new ImageResponse(
<ShadcnRegistry5
name="Eldora UI"
title="Modern Next.js Templates"
description="Built with React, Typescript, shadcn/ui, Tailwind CSS, and Motion."
/>,
{
width: 1200,
height: 630,
}
);
}API Reference
ShadcnRegistry5
| Prop | Type |
|---|---|
name | string |
title | string |
description | string |
logo | string |
accent | string |