For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
0
Sponsor

Stat

A metric / dashboard Open Graph image with an eyebrow label, an oversized number, a trend pill, and a caption.

Images rendered
10M+
+24%
Open Graph images generated with next/og this year.
ogimagecn

Installation

$ pnpm dlx shadcn@latest add https://ogimagecn.vercel.app/r/stat.json

Usage

import { ImageResponse } from "next/og";
 
import { Stat } from "@/components/og/stat";
 
export function GET() {
  return new ImageResponse(
    <Stat
      label="Images rendered"
      value="10M+"
      trend="+24%"
      caption="Open Graph images generated with next/og this year."
    />,
    { width: 1200, height: 630 }
  );
}

API Reference

Stat

PropTypeDefault
labelstring-
valuestring-
captionstring-
trendstring-
brandstring-
accentstring-