{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "email-preview-frame",
  "type": "registry:ui",
  "title": "Email preview frame",
  "description": "Inbox style preview frame showing the sender and subject above the rendered email body. Handy for template galleries and email settings screens.",
  "dependencies": [],
  "registryDependencies": [
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/email-preview-frame.tsx",
      "type": "registry:ui",
      "target": "components/ui/email-preview-frame.tsx",
      "content": "\"use client\"\nimport * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nfunction EmailPreviewFrame({\n  subject,\n  from = \"hello@minidev.pro\",\n  children,\n  className,\n}: {\n  subject: string\n  from?: string\n  children: React.ReactNode\n  className?: string\n}) {\n  return (\n    <div data-slot=\"email-preview-frame\" className={cn(\"overflow-hidden rounded-2xl border border-border bg-sunken\", className)}>\n      <div className=\"space-y-1 border-b border-border bg-surface px-4 py-3\">\n        <p className=\"text-xs text-fg-muted\">From <span className=\"text-fg\">{from}</span></p>\n        <p className=\"text-sm font-medium text-fg\">{subject}</p>\n      </div>\n      <div className=\"bg-bg p-4\">{children}</div>\n    </div>\n  )\n}\nexport { EmailPreviewFrame }\n"
    }
  ]
}
