# OG Workspace

> OG generator UI shell. Wire CONTENT.endpoint (Host API).

A shadcn/ui block from the [@atroui](https://www.atroui.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/atroui/og-workspace).

- Page, with a live preview: https://shadcn.exchange/r/atroui/og-workspace
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/atroui/og-workspace-light-c3bc7617a63d7dc8.png
- Registry item: https://www.atroui.com/r/og-workspace.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://www.atroui.com/r/og-workspace.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@atroui/og-live-preview`

## Files

### `registry/default/blocks/og-workspace.tsx`

```tsx
"use client"

import { OgLivePreview, type OgStyleKey } from "./og-live-preview"

/**
 * Lightweight OG workspace shell. Wire CONTENT.endpoint in your host app
 * for real image generation (Host API).
 */
const CONTENT = {
  endpoint: "/api/generate",
  title: "Ship the product this week",
  subtitle: "Fixed scope. Fixed price.",
  styleKey: "paperQuote" as OgStyleKey,
}

export function OgWorkspace() {
  return (
    <div className="space-y-4 rounded-2xl border border-border-subtle bg-card/40 p-4 sm:p-6">
      <div>
        <p className="ms-stamp">OG workspace</p>
        <p className="mt-2 text-sm text-muted-foreground">
          Preview is CSS-only. Point{" "}
          <code className="font-mono text-[12px] text-foreground">
            CONTENT.endpoint
          </code>{" "}
          at your generator API to export PNGs.
        </p>
      </div>
      <div className="relative aspect-[1200/630] overflow-hidden rounded-xl border border-border-subtle">
        <OgLivePreview
          title={CONTENT.title}
          subtitle={CONTENT.subtitle}
          styleKey={CONTENT.styleKey}
        />
      </div>
    </div>
  )
}
```
