{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "elements-generative-markdown",
  "type": "registry:component",
  "title": "Generative Markdown",
  "description": "Render streamed Markdown and nested generative UI content.",
  "dependencies": [
    "react-markdown",
    "remark-gfm"
  ],
  "registryDependencies": [
    "https://r.assistant-ui.com/generative-ui-style.json"
  ],
  "files": [
    {
      "type": "registry:component",
      "path": "components/assistant-ui/elements/generative-markdown.tsx",
      "sourcePath": "packages/ui/src/components/react/assistant-ui/elements/generative-markdown.tsx",
      "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport ReactMarkdown from \"react-markdown\";\nimport remarkGfm from \"remark-gfm\";\n\nexport type GenerativeMarkdownProps = {\n  value?: string | undefined;\n  children?: ReactNode;\n};\n\nexport function GenerativeMarkdown({\n  value,\n  children,\n}: GenerativeMarkdownProps) {\n  return (\n    <div data-aui=\"markdown\">\n      <ReactMarkdown remarkPlugins={[remarkGfm]}>{value ?? \"\"}</ReactMarkdown>\n      {children}\n    </div>\n  );\n}\n"
    }
  ]
}