OG Examples
atroui/og-examplesFreeBlock
OG style gallery with editable CONTENT examples.
Install it
npx shadcn@latest add https://atroui.com/r/og-examples.jsonSource
1"use client"23import Link from "next/link"45import { OgLivePreview, type OgStyleKey } from "./og-live-preview"6import { cn } from "@/lib/utils"78/** Edit CONTENT for demo cards shown in the gallery. */9const CONTENT = {10 examples: [11 {12 title: "Ship this week",13 subtitle: "Fixed-scope MVP",14 styleKey: "paperQuote" as OgStyleKey,15 href: "/og",16 },17 {18 title: "Own the UI",19 subtitle: "shadcn registry",20 styleKey: "boldSplit" as OgStyleKey,21 href: "/docs/registry",22 },23 ],24}2526export function OgExamples({27 preview = false,28 className,29}: {30 preview?: boolean31 className?: string32}) {33 return (34 <div className={cn("grid gap-4 sm:grid-cols-2", className)}>35 {CONTENT.examples.map((ex) => (36 <Link37 key={ex.title}38 href={ex.href}39 className="group relative aspect-1200/630 overflow-hidden rounded-2xl border border-border-subtle"40 >41 <OgLivePreview42 title={ex.title}43 subtitle={ex.subtitle}44 styleKey={ex.styleKey}45 />46 {!preview ? (47 <span className="absolute right-3 bottom-3 rounded-md border border-white/20 bg-black/50 px-2.5 py-1 text-[11px] text-white backdrop-blur-sm">48 Open49 </span>50 ) : null}51 </Link>52 ))}53 </div>54 )55}
What it pulls in
npm packages
Other registry items
Files it writes
More from atroui
All 81 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Analytics Provideranalytics-provider | atroui | Blocks | Free | 1 dep | |
| AR Portfolioar-portfolio | atroui | Blocks | Free | 1 dep | |
| Before / Afterbefore-after-slider | atroui | Blocks | Free | no deps | |
| Calendly Embedcalendly-embed | atroui | Blocks | Free | 1 dep | |
| Changelogchangelog | atroui | Blocks | Free | no deps | |
| Command Menucommand-menu | atroui | Blocks | Free | 4 deps | |
| Contact Formcontact-form | atroui | Blocks | Free | 2 deps | |
| Contextual CTAcontextual-cta | atroui | Blocks | Free | 2 deps |
