{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "rich-text-content",
  "title": "Rich Text Content",
  "description": "Renders HTML produced by the rich text editor with consistent typography.",
  "files": [
    {
      "path": "registry/rapid/ui/rich-text-content/rich-text-content.tsx",
      "content": "import type * as React from 'react'\nimport { cn } from '@/lib/utils'\n\ninterface RichTextContentProps\n\textends Omit<React.HTMLAttributes<HTMLDivElement>, 'dangerouslySetInnerHTML' | 'children'> {\n\thtml: string\n}\n\n/**\n * Renders rich text HTML content with proper list, paragraph, and link styles.\n * Use this wherever richtext from the Tiptap editor is displayed as output.\n */\nexport function RichTextContent({ html, className, ...props }: RichTextContentProps) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"rich-text-content\"\n\t\t\tclassName={cn(\n\t\t\t\t'[&_p]:m-0 [&_p]:w-full [&_p:empty]:min-h-[1em] [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:list-decimal [&_ol]:pl-6 [&_li]:pl-1 [&_a]:text-primary [&_a]:underline [&_a]:underline-offset-4',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t// biome-ignore lint/security/noDangerouslySetInnerHtml: richtext content from editor\n\t\t\tdangerouslySetInnerHTML={{ __html: html }}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n",
      "type": "registry:ui",
      "target": "components/ui/rich-text-content.tsx"
    }
  ],
  "type": "registry:ui"
}