[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-vercel-streamdown":3,"mdc--cgp1r2-key":37,"related-repo-vercel-streamdown":2485,"related-org-vercel-streamdown":2494},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":32,"sourceUrl":35,"mdContent":36},"streamdown","implement streaming React Markdown with Streamdown","Implement, configure, and customize Streamdown — a streaming-optimized React Markdown renderer with syntax highlighting, Mermaid diagrams, math rendering, and CJK support. Use when working with Streamdown setup, configuration, plugins, styling, security, or integration with AI streaming (e.g., Vercel AI SDK). Triggers on: (1) Installing or setting up Streamdown, (2) Configuring plugins (code, mermaid, math, cjk), (3) Styling or theming Streamdown output, (4) Integrating with AI chat\u002Fstreaming, (5) Configuring security, link safety, or custom HTML tags, (6) Using carets, static mode, or custom components, (7) Troubleshooting Tailwind, Shiki, or Vite issues.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"vercel","Vercel","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fvercel.png",[12,14,17,20],{"name":9,"slug":8,"type":13},"tag",{"name":15,"slug":16,"type":13},"React","react",{"name":18,"slug":19,"type":13},"HTML","html",{"name":21,"slug":22,"type":13},"Frontend","frontend",5459,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fstreamdown","2026-04-06T18:55:57.621904",null,278,[29,30,31],"ai","markdown","streaming",{"repoUrl":24,"stars":23,"forks":27,"topics":33,"description":34},[29,30,31],"A drop-in replacement for react-markdown, designed for AI-powered streaming.","https:\u002F\u002Fgithub.com\u002Fvercel\u002Fstreamdown\u002Ftree\u002FHEAD\u002Fskills\u002Fstreamdown","---\nname: streamdown\ndescription: >-\n  Implement, configure, and customize Streamdown — a streaming-optimized React Markdown renderer\n  with syntax highlighting, Mermaid diagrams, math rendering, and CJK support. Use when working\n  with Streamdown setup, configuration, plugins, styling, security, or integration with AI\n  streaming (e.g., Vercel AI SDK). Triggers on: (1) Installing or setting up Streamdown,\n  (2) Configuring plugins (code, mermaid, math, cjk), (3) Styling or theming Streamdown output,\n  (4) Integrating with AI chat\u002Fstreaming, (5) Configuring security, link safety, or custom HTML tags,\n  (6) Using carets, static mode, or custom components, (7) Troubleshooting Tailwind, Shiki, or Vite issues.\n---\n\n# Streamdown\n\nStreaming-optimized React Markdown renderer. Drop-in replacement for `react-markdown` with built-in streaming support, security, and interactive controls.\n\n## Quick Setup\n\n### 1. Install\n\n```bash\nnpm install streamdown\n```\n\nOptional plugins (install only what's needed):\n```bash\nnpm install @streamdown\u002Fcode @streamdown\u002Fmermaid @streamdown\u002Fmath @streamdown\u002Fcjk\n```\n\n### 2. Configure Tailwind CSS (Required)\n\n**This is the most commonly missed step.** Streamdown uses Tailwind for styling and the dist files must be scanned.\n\n**Tailwind v4** — add to `globals.css`:\n```css\n@source \"..\u002Fnode_modules\u002Fstreamdown\u002Fdist\u002F*.js\";\n```\n\nAdd plugin `@source` lines **only for packages you have installed** (omitting uninstalled plugins avoids Tailwind errors). See plugin pages for exact paths:\n- Code: `@source \"..\u002Fnode_modules\u002F@streamdown\u002Fcode\u002Fdist\u002F*.js\";`\n- CJK: `@source \"..\u002Fnode_modules\u002F@streamdown\u002Fcjk\u002Fdist\u002F*.js\";`\n- Math: `@source \"..\u002Fnode_modules\u002F@streamdown\u002Fmath\u002Fdist\u002F*.js\";`\n- Mermaid: `@source \"..\u002Fnode_modules\u002F@streamdown\u002Fmermaid\u002Fdist\u002F*.js\";`\n\n\n**Tailwind v3** — add to `tailwind.config.js`:\n```js\nmodule.exports = {\n  content: [\n    \".\u002Fapp\u002F**\u002F*.{js,ts,jsx,tsx,mdx}\",\n    \".\u002Fnode_modules\u002Fstreamdown\u002Fdist\u002F*.js\",\n  ],\n};\n```\n\n### 3. Basic Usage\n\n```tsx\nimport { Streamdown } from 'streamdown';\n\n\u003CStreamdown>{markdown}\u003C\u002FStreamdown>\n```\n\n### 4. With AI Streaming (Vercel AI SDK)\n\n```tsx\n'use client';\nimport { useChat } from '@ai-sdk\u002Freact';\nimport { Streamdown } from 'streamdown';\nimport { code } from '@streamdown\u002Fcode';\n\nexport default function Chat() {\n  const { messages, input, handleInputChange, handleSubmit, isLoading } = useChat();\n\n  return (\n    \u003C>\n      {messages.map((msg, i) => (\n        \u003CStreamdown\n          key={msg.id}\n          plugins={{ code }}\n          caret=\"block\"\n          isAnimating={isLoading && i === messages.length - 1 && msg.role === 'assistant'}\n        >\n          {msg.content}\n        \u003C\u002FStreamdown>\n      ))}\n      \u003Cform onSubmit={handleSubmit}>\n        \u003Cinput value={input} onChange={handleInputChange} disabled={isLoading} \u002F>\n      \u003C\u002Fform>\n    \u003C\u002F>\n  );\n}\n```\n\n### 5. Static Mode (Blogs, Docs)\n\n```tsx\n\u003CStreamdown mode=\"static\" plugins={{ code }}>\n  {content}\n\u003C\u002FStreamdown>\n```\n\n## Key Props\n\n| Prop | Type | Default | Purpose |\n|------|------|---------|---------|\n| `children` | `string` | — | Markdown content |\n| `mode` | `\"streaming\" \\| \"static\"` | `\"streaming\"` | Rendering mode |\n| `plugins` | `{ code?, mermaid?, math?, cjk? }` | — | Feature plugins |\n| `isAnimating` | `boolean` | `false` | Streaming indicator |\n| `caret` | `\"block\" \\| \"circle\"` | — | Cursor style |\n| `components` | `Components` | — | Custom element overrides |\n| `controls` | `boolean \\| object` | `true` | Interactive buttons |\n| `linkSafety` | `LinkSafetyConfig` | `{ enabled: true }` | Link confirmation modal |\n| `shikiTheme` | `[light, dark]` | `['github-light', 'github-dark']` | Code themes |\n| `className` | `string` | — | Container class |\n| `allowedElements` | `string[]` | all | Tag names to allow |\n| `disallowedElements` | `string[]` | `[]` | Tag names to disallow |\n| `allowElement` | `AllowElement` | — | Custom element filter |\n| `unwrapDisallowed` | `boolean` | `false` | Keep children of disallowed elements |\n| `skipHtml` | `boolean` | `false` | Ignore raw HTML |\n| `urlTransform` | `UrlTransform` | `defaultUrlTransform` | Transform\u002Fsanitize URLs |\n\nFor full API reference, see [references\u002Fapi.md](references\u002Fapi.md).\n\n## Plugin Quick Reference\n\n| Plugin | Package | Purpose |\n|--------|---------|---------|\n| Code | `@streamdown\u002Fcode` | Syntax highlighting (Shiki, 200+ languages) |\n| Mermaid | `@streamdown\u002Fmermaid` | Diagrams (flowcharts, sequence, etc.) |\n| Math | `@streamdown\u002Fmath` | LaTeX via KaTeX (requires CSS import) |\n| CJK | `@streamdown\u002Fcjk` | Chinese\u002FJapanese\u002FKorean text support |\n\n**Math requires CSS:**\n```tsx\nimport 'katex\u002Fdist\u002Fkatex.min.css';\n```\n\nFor plugin configuration details, see [references\u002Fplugins.md](references\u002Fplugins.md).\n\n## References\n\nUse these for deeper implementation details:\n\n- **[references\u002Fapi.md](references\u002Fapi.md)** — Complete props, types, and interfaces\n- **[references\u002Fplugins.md](references\u002Fplugins.md)** — Plugin setup, configuration, and customization\n- **[references\u002Fstyling.md](references\u002Fstyling.md)** — CSS variables, data attributes, custom components, theme examples\n- **[references\u002Fsecurity.md](references\u002Fsecurity.md)** — Hardening, link safety, custom HTML tags, production config\n- **[references\u002Ffeatures.md](references\u002Ffeatures.md)** — Carets, remend, static mode, controls, GFM, memoization, troubleshooting\n\n## Example Configurations\n\nCopy and adapt from `assets\u002Fexamples\u002F`:\n\n- **[basic-streaming.tsx](assets\u002Fexamples\u002Fbasic-streaming.tsx)** — Minimal AI chat with Vercel AI SDK\n- **[with-caret.tsx](assets\u002Fexamples\u002Fwith-caret.tsx)** — Streaming with block caret cursor\n- **[full-featured.tsx](assets\u002Fexamples\u002Ffull-featured.tsx)** — All plugins, carets, link safety, controls\n- **[static-mode.tsx](assets\u002Fexamples\u002Fstatic-mode.tsx)** — Blog\u002Fdocs rendering\n- **[custom-security.tsx](assets\u002Fexamples\u002Fcustom-security.tsx)** — Strict security for AI content\n\n## Common Gotchas\n\n1. **Tailwind styles missing** — Add `@source` directive or `content` entry for `node_modules\u002Fstreamdown\u002Fdist\u002F*.js`\n2. **Math not rendering** — Import `katex\u002Fdist\u002Fkatex.min.css`\n3. **Caret not showing** — Both `caret` prop AND `isAnimating={true}` are required\n4. **Copy buttons during streaming** — Disabled automatically when `isAnimating={true}`\n5. **Link safety modal appearing** — Enabled by default; disable with `linkSafety={{ enabled: false }}`\n6. **Shiki warning in Next.js** — Install `shiki` explicitly, add to `transpilePackages`\n7. **`allowedTags` not working** — Only works with default rehype plugins\n8. **Math uses `$$` not `$`** — Single dollar is disabled by default to avoid currency conflicts\n",{"data":38,"body":39},{"name":4,"description":6},{"type":40,"children":41},"root",[42,50,65,72,79,113,118,156,162,173,191,221,240,289,305,418,424,523,529,1294,1300,1390,1396,1955,1967,1973,2086,2094,2125,2136,2142,2147,2213,2219,2231,2304,2310,2479],{"type":43,"tag":44,"props":45,"children":46},"element","h1",{"id":4},[47],{"type":48,"value":49},"text","Streamdown",{"type":43,"tag":51,"props":52,"children":53},"p",{},[54,56,63],{"type":48,"value":55},"Streaming-optimized React Markdown renderer. Drop-in replacement for ",{"type":43,"tag":57,"props":58,"children":60},"code",{"className":59},[],[61],{"type":48,"value":62},"react-markdown",{"type":48,"value":64}," with built-in streaming support, security, and interactive controls.",{"type":43,"tag":66,"props":67,"children":69},"h2",{"id":68},"quick-setup",[70],{"type":48,"value":71},"Quick Setup",{"type":43,"tag":73,"props":74,"children":76},"h3",{"id":75},"_1-install",[77],{"type":48,"value":78},"1. Install",{"type":43,"tag":80,"props":81,"children":86},"pre",{"className":82,"code":83,"language":84,"meta":85,"style":85},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install streamdown\n","bash","",[87],{"type":43,"tag":57,"props":88,"children":89},{"__ignoreMap":85},[90],{"type":43,"tag":91,"props":92,"children":95},"span",{"class":93,"line":94},"line",1,[96,102,108],{"type":43,"tag":91,"props":97,"children":99},{"style":98},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[100],{"type":48,"value":101},"npm",{"type":43,"tag":91,"props":103,"children":105},{"style":104},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[106],{"type":48,"value":107}," install",{"type":43,"tag":91,"props":109,"children":110},{"style":104},[111],{"type":48,"value":112}," streamdown\n",{"type":43,"tag":51,"props":114,"children":115},{},[116],{"type":48,"value":117},"Optional plugins (install only what's needed):",{"type":43,"tag":80,"props":119,"children":121},{"className":82,"code":120,"language":84,"meta":85,"style":85},"npm install @streamdown\u002Fcode @streamdown\u002Fmermaid @streamdown\u002Fmath @streamdown\u002Fcjk\n",[122],{"type":43,"tag":57,"props":123,"children":124},{"__ignoreMap":85},[125],{"type":43,"tag":91,"props":126,"children":127},{"class":93,"line":94},[128,132,136,141,146,151],{"type":43,"tag":91,"props":129,"children":130},{"style":98},[131],{"type":48,"value":101},{"type":43,"tag":91,"props":133,"children":134},{"style":104},[135],{"type":48,"value":107},{"type":43,"tag":91,"props":137,"children":138},{"style":104},[139],{"type":48,"value":140}," @streamdown\u002Fcode",{"type":43,"tag":91,"props":142,"children":143},{"style":104},[144],{"type":48,"value":145}," @streamdown\u002Fmermaid",{"type":43,"tag":91,"props":147,"children":148},{"style":104},[149],{"type":48,"value":150}," @streamdown\u002Fmath",{"type":43,"tag":91,"props":152,"children":153},{"style":104},[154],{"type":48,"value":155}," @streamdown\u002Fcjk\n",{"type":43,"tag":73,"props":157,"children":159},{"id":158},"_2-configure-tailwind-css-required",[160],{"type":48,"value":161},"2. Configure Tailwind CSS (Required)",{"type":43,"tag":51,"props":163,"children":164},{},[165,171],{"type":43,"tag":166,"props":167,"children":168},"strong",{},[169],{"type":48,"value":170},"This is the most commonly missed step.",{"type":48,"value":172}," Streamdown uses Tailwind for styling and the dist files must be scanned.",{"type":43,"tag":51,"props":174,"children":175},{},[176,181,183,189],{"type":43,"tag":166,"props":177,"children":178},{},[179],{"type":48,"value":180},"Tailwind v4",{"type":48,"value":182}," — add to ",{"type":43,"tag":57,"props":184,"children":186},{"className":185},[],[187],{"type":48,"value":188},"globals.css",{"type":48,"value":190},":",{"type":43,"tag":80,"props":192,"children":196},{"className":193,"code":194,"language":195,"meta":85,"style":85},"language-css shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","@source \"..\u002Fnode_modules\u002Fstreamdown\u002Fdist\u002F*.js\";\n","css",[197],{"type":43,"tag":57,"props":198,"children":199},{"__ignoreMap":85},[200],{"type":43,"tag":91,"props":201,"children":202},{"class":93,"line":94},[203,209,215],{"type":43,"tag":91,"props":204,"children":206},{"style":205},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[207],{"type":48,"value":208},"@source",{"type":43,"tag":91,"props":210,"children":212},{"style":211},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[213],{"type":48,"value":214}," \"..\u002Fnode_modules\u002Fstreamdown\u002Fdist\u002F*.js\"",{"type":43,"tag":91,"props":216,"children":218},{"style":217},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[219],{"type":48,"value":220},";\n",{"type":43,"tag":51,"props":222,"children":223},{},[224,226,231,233,238],{"type":48,"value":225},"Add plugin ",{"type":43,"tag":57,"props":227,"children":229},{"className":228},[],[230],{"type":48,"value":208},{"type":48,"value":232}," lines ",{"type":43,"tag":166,"props":234,"children":235},{},[236],{"type":48,"value":237},"only for packages you have installed",{"type":48,"value":239}," (omitting uninstalled plugins avoids Tailwind errors). See plugin pages for exact paths:",{"type":43,"tag":241,"props":242,"children":243},"ul",{},[244,256,267,278],{"type":43,"tag":245,"props":246,"children":247},"li",{},[248,250],{"type":48,"value":249},"Code: ",{"type":43,"tag":57,"props":251,"children":253},{"className":252},[],[254],{"type":48,"value":255},"@source \"..\u002Fnode_modules\u002F@streamdown\u002Fcode\u002Fdist\u002F*.js\";",{"type":43,"tag":245,"props":257,"children":258},{},[259,261],{"type":48,"value":260},"CJK: ",{"type":43,"tag":57,"props":262,"children":264},{"className":263},[],[265],{"type":48,"value":266},"@source \"..\u002Fnode_modules\u002F@streamdown\u002Fcjk\u002Fdist\u002F*.js\";",{"type":43,"tag":245,"props":268,"children":269},{},[270,272],{"type":48,"value":271},"Math: ",{"type":43,"tag":57,"props":273,"children":275},{"className":274},[],[276],{"type":48,"value":277},"@source \"..\u002Fnode_modules\u002F@streamdown\u002Fmath\u002Fdist\u002F*.js\";",{"type":43,"tag":245,"props":279,"children":280},{},[281,283],{"type":48,"value":282},"Mermaid: ",{"type":43,"tag":57,"props":284,"children":286},{"className":285},[],[287],{"type":48,"value":288},"@source \"..\u002Fnode_modules\u002F@streamdown\u002Fmermaid\u002Fdist\u002F*.js\";",{"type":43,"tag":51,"props":290,"children":291},{},[292,297,298,304],{"type":43,"tag":166,"props":293,"children":294},{},[295],{"type":48,"value":296},"Tailwind v3",{"type":48,"value":182},{"type":43,"tag":57,"props":299,"children":301},{"className":300},[],[302],{"type":48,"value":303},"tailwind.config.js",{"type":48,"value":190},{"type":43,"tag":80,"props":306,"children":310},{"className":307,"code":308,"language":309,"meta":85,"style":85},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","module.exports = {\n  content: [\n    \".\u002Fapp\u002F**\u002F*.{js,ts,jsx,tsx,mdx}\",\n    \".\u002Fnode_modules\u002Fstreamdown\u002Fdist\u002F*.js\",\n  ],\n};\n","js",[311],{"type":43,"tag":57,"props":312,"children":313},{"__ignoreMap":85},[314,332,351,375,396,409],{"type":43,"tag":91,"props":315,"children":316},{"class":93,"line":94},[317,322,327],{"type":43,"tag":91,"props":318,"children":319},{"style":217},[320],{"type":48,"value":321},"module.exports",{"type":43,"tag":91,"props":323,"children":324},{"style":217},[325],{"type":48,"value":326}," =",{"type":43,"tag":91,"props":328,"children":329},{"style":217},[330],{"type":48,"value":331}," {\n",{"type":43,"tag":91,"props":333,"children":335},{"class":93,"line":334},2,[336,342,346],{"type":43,"tag":91,"props":337,"children":339},{"style":338},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[340],{"type":48,"value":341},"  content",{"type":43,"tag":91,"props":343,"children":344},{"style":217},[345],{"type":48,"value":190},{"type":43,"tag":91,"props":347,"children":348},{"style":211},[349],{"type":48,"value":350}," [\n",{"type":43,"tag":91,"props":352,"children":354},{"class":93,"line":353},3,[355,360,365,370],{"type":43,"tag":91,"props":356,"children":357},{"style":217},[358],{"type":48,"value":359},"    \"",{"type":43,"tag":91,"props":361,"children":362},{"style":104},[363],{"type":48,"value":364},".\u002Fapp\u002F**\u002F*.{js,ts,jsx,tsx,mdx}",{"type":43,"tag":91,"props":366,"children":367},{"style":217},[368],{"type":48,"value":369},"\"",{"type":43,"tag":91,"props":371,"children":372},{"style":217},[373],{"type":48,"value":374},",\n",{"type":43,"tag":91,"props":376,"children":378},{"class":93,"line":377},4,[379,383,388,392],{"type":43,"tag":91,"props":380,"children":381},{"style":217},[382],{"type":48,"value":359},{"type":43,"tag":91,"props":384,"children":385},{"style":104},[386],{"type":48,"value":387},".\u002Fnode_modules\u002Fstreamdown\u002Fdist\u002F*.js",{"type":43,"tag":91,"props":389,"children":390},{"style":217},[391],{"type":48,"value":369},{"type":43,"tag":91,"props":393,"children":394},{"style":217},[395],{"type":48,"value":374},{"type":43,"tag":91,"props":397,"children":399},{"class":93,"line":398},5,[400,405],{"type":43,"tag":91,"props":401,"children":402},{"style":211},[403],{"type":48,"value":404},"  ]",{"type":43,"tag":91,"props":406,"children":407},{"style":217},[408],{"type":48,"value":374},{"type":43,"tag":91,"props":410,"children":412},{"class":93,"line":411},6,[413],{"type":43,"tag":91,"props":414,"children":415},{"style":217},[416],{"type":48,"value":417},"};\n",{"type":43,"tag":73,"props":419,"children":421},{"id":420},"_3-basic-usage",[422],{"type":48,"value":423},"3. Basic Usage",{"type":43,"tag":80,"props":425,"children":429},{"className":426,"code":427,"language":428,"meta":85,"style":85},"language-tsx shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { Streamdown } from 'streamdown';\n\n\u003CStreamdown>{markdown}\u003C\u002FStreamdown>\n","tsx",[430],{"type":43,"tag":57,"props":431,"children":432},{"__ignoreMap":85},[433,479,488],{"type":43,"tag":91,"props":434,"children":435},{"class":93,"line":94},[436,441,446,451,456,461,466,470,475],{"type":43,"tag":91,"props":437,"children":438},{"style":205},[439],{"type":48,"value":440},"import",{"type":43,"tag":91,"props":442,"children":443},{"style":217},[444],{"type":48,"value":445}," {",{"type":43,"tag":91,"props":447,"children":448},{"style":211},[449],{"type":48,"value":450}," Streamdown",{"type":43,"tag":91,"props":452,"children":453},{"style":217},[454],{"type":48,"value":455}," }",{"type":43,"tag":91,"props":457,"children":458},{"style":205},[459],{"type":48,"value":460}," from",{"type":43,"tag":91,"props":462,"children":463},{"style":217},[464],{"type":48,"value":465}," '",{"type":43,"tag":91,"props":467,"children":468},{"style":104},[469],{"type":48,"value":4},{"type":43,"tag":91,"props":471,"children":472},{"style":217},[473],{"type":48,"value":474},"'",{"type":43,"tag":91,"props":476,"children":477},{"style":217},[478],{"type":48,"value":220},{"type":43,"tag":91,"props":480,"children":481},{"class":93,"line":334},[482],{"type":43,"tag":91,"props":483,"children":485},{"emptyLinePlaceholder":484},true,[486],{"type":48,"value":487},"\n",{"type":43,"tag":91,"props":489,"children":490},{"class":93,"line":353},[491,496,500,505,509,514,518],{"type":43,"tag":91,"props":492,"children":493},{"style":217},[494],{"type":48,"value":495},"\u003C",{"type":43,"tag":91,"props":497,"children":498},{"style":98},[499],{"type":48,"value":49},{"type":43,"tag":91,"props":501,"children":502},{"style":217},[503],{"type":48,"value":504},">{",{"type":43,"tag":91,"props":506,"children":507},{"style":211},[508],{"type":48,"value":30},{"type":43,"tag":91,"props":510,"children":511},{"style":217},[512],{"type":48,"value":513},"}\u003C\u002F",{"type":43,"tag":91,"props":515,"children":516},{"style":98},[517],{"type":48,"value":49},{"type":43,"tag":91,"props":519,"children":520},{"style":217},[521],{"type":48,"value":522},">\n",{"type":43,"tag":73,"props":524,"children":526},{"id":525},"_4-with-ai-streaming-vercel-ai-sdk",[527],{"type":48,"value":528},"4. With AI Streaming (Vercel AI SDK)",{"type":43,"tag":80,"props":530,"children":532},{"className":426,"code":531,"language":428,"meta":85,"style":85},"'use client';\nimport { useChat } from '@ai-sdk\u002Freact';\nimport { Streamdown } from 'streamdown';\nimport { code } from '@streamdown\u002Fcode';\n\nexport default function Chat() {\n  const { messages, input, handleInputChange, handleSubmit, isLoading } = useChat();\n\n  return (\n    \u003C>\n      {messages.map((msg, i) => (\n        \u003CStreamdown\n          key={msg.id}\n          plugins={{ code }}\n          caret=\"block\"\n          isAnimating={isLoading && i === messages.length - 1 && msg.role === 'assistant'}\n        >\n          {msg.content}\n        \u003C\u002FStreamdown>\n      ))}\n      \u003Cform onSubmit={handleSubmit}>\n        \u003Cinput value={input} onChange={handleInputChange} disabled={isLoading} \u002F>\n      \u003C\u002Fform>\n    \u003C\u002F>\n  );\n}\n",[533],{"type":43,"tag":57,"props":534,"children":535},{"__ignoreMap":85},[536,556,597,636,677,684,718,793,801,815,824,886,900,932,956,984,1081,1090,1116,1133,1146,1179,1247,1264,1273,1286],{"type":43,"tag":91,"props":537,"children":538},{"class":93,"line":94},[539,543,548,552],{"type":43,"tag":91,"props":540,"children":541},{"style":217},[542],{"type":48,"value":474},{"type":43,"tag":91,"props":544,"children":545},{"style":104},[546],{"type":48,"value":547},"use client",{"type":43,"tag":91,"props":549,"children":550},{"style":217},[551],{"type":48,"value":474},{"type":43,"tag":91,"props":553,"children":554},{"style":217},[555],{"type":48,"value":220},{"type":43,"tag":91,"props":557,"children":558},{"class":93,"line":334},[559,563,567,572,576,580,584,589,593],{"type":43,"tag":91,"props":560,"children":561},{"style":205},[562],{"type":48,"value":440},{"type":43,"tag":91,"props":564,"children":565},{"style":217},[566],{"type":48,"value":445},{"type":43,"tag":91,"props":568,"children":569},{"style":211},[570],{"type":48,"value":571}," useChat",{"type":43,"tag":91,"props":573,"children":574},{"style":217},[575],{"type":48,"value":455},{"type":43,"tag":91,"props":577,"children":578},{"style":205},[579],{"type":48,"value":460},{"type":43,"tag":91,"props":581,"children":582},{"style":217},[583],{"type":48,"value":465},{"type":43,"tag":91,"props":585,"children":586},{"style":104},[587],{"type":48,"value":588},"@ai-sdk\u002Freact",{"type":43,"tag":91,"props":590,"children":591},{"style":217},[592],{"type":48,"value":474},{"type":43,"tag":91,"props":594,"children":595},{"style":217},[596],{"type":48,"value":220},{"type":43,"tag":91,"props":598,"children":599},{"class":93,"line":353},[600,604,608,612,616,620,624,628,632],{"type":43,"tag":91,"props":601,"children":602},{"style":205},[603],{"type":48,"value":440},{"type":43,"tag":91,"props":605,"children":606},{"style":217},[607],{"type":48,"value":445},{"type":43,"tag":91,"props":609,"children":610},{"style":211},[611],{"type":48,"value":450},{"type":43,"tag":91,"props":613,"children":614},{"style":217},[615],{"type":48,"value":455},{"type":43,"tag":91,"props":617,"children":618},{"style":205},[619],{"type":48,"value":460},{"type":43,"tag":91,"props":621,"children":622},{"style":217},[623],{"type":48,"value":465},{"type":43,"tag":91,"props":625,"children":626},{"style":104},[627],{"type":48,"value":4},{"type":43,"tag":91,"props":629,"children":630},{"style":217},[631],{"type":48,"value":474},{"type":43,"tag":91,"props":633,"children":634},{"style":217},[635],{"type":48,"value":220},{"type":43,"tag":91,"props":637,"children":638},{"class":93,"line":377},[639,643,647,652,656,660,664,669,673],{"type":43,"tag":91,"props":640,"children":641},{"style":205},[642],{"type":48,"value":440},{"type":43,"tag":91,"props":644,"children":645},{"style":217},[646],{"type":48,"value":445},{"type":43,"tag":91,"props":648,"children":649},{"style":211},[650],{"type":48,"value":651}," code",{"type":43,"tag":91,"props":653,"children":654},{"style":217},[655],{"type":48,"value":455},{"type":43,"tag":91,"props":657,"children":658},{"style":205},[659],{"type":48,"value":460},{"type":43,"tag":91,"props":661,"children":662},{"style":217},[663],{"type":48,"value":465},{"type":43,"tag":91,"props":665,"children":666},{"style":104},[667],{"type":48,"value":668},"@streamdown\u002Fcode",{"type":43,"tag":91,"props":670,"children":671},{"style":217},[672],{"type":48,"value":474},{"type":43,"tag":91,"props":674,"children":675},{"style":217},[676],{"type":48,"value":220},{"type":43,"tag":91,"props":678,"children":679},{"class":93,"line":398},[680],{"type":43,"tag":91,"props":681,"children":682},{"emptyLinePlaceholder":484},[683],{"type":48,"value":487},{"type":43,"tag":91,"props":685,"children":686},{"class":93,"line":411},[687,692,697,703,709,714],{"type":43,"tag":91,"props":688,"children":689},{"style":205},[690],{"type":48,"value":691},"export",{"type":43,"tag":91,"props":693,"children":694},{"style":205},[695],{"type":48,"value":696}," default",{"type":43,"tag":91,"props":698,"children":700},{"style":699},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[701],{"type":48,"value":702}," function",{"type":43,"tag":91,"props":704,"children":706},{"style":705},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[707],{"type":48,"value":708}," Chat",{"type":43,"tag":91,"props":710,"children":711},{"style":217},[712],{"type":48,"value":713},"()",{"type":43,"tag":91,"props":715,"children":716},{"style":217},[717],{"type":48,"value":331},{"type":43,"tag":91,"props":719,"children":721},{"class":93,"line":720},7,[722,727,731,736,741,746,750,755,759,764,768,773,777,781,785,789],{"type":43,"tag":91,"props":723,"children":724},{"style":699},[725],{"type":48,"value":726},"  const",{"type":43,"tag":91,"props":728,"children":729},{"style":217},[730],{"type":48,"value":445},{"type":43,"tag":91,"props":732,"children":733},{"style":211},[734],{"type":48,"value":735}," messages",{"type":43,"tag":91,"props":737,"children":738},{"style":217},[739],{"type":48,"value":740},",",{"type":43,"tag":91,"props":742,"children":743},{"style":211},[744],{"type":48,"value":745}," input",{"type":43,"tag":91,"props":747,"children":748},{"style":217},[749],{"type":48,"value":740},{"type":43,"tag":91,"props":751,"children":752},{"style":211},[753],{"type":48,"value":754}," handleInputChange",{"type":43,"tag":91,"props":756,"children":757},{"style":217},[758],{"type":48,"value":740},{"type":43,"tag":91,"props":760,"children":761},{"style":211},[762],{"type":48,"value":763}," handleSubmit",{"type":43,"tag":91,"props":765,"children":766},{"style":217},[767],{"type":48,"value":740},{"type":43,"tag":91,"props":769,"children":770},{"style":211},[771],{"type":48,"value":772}," isLoading",{"type":43,"tag":91,"props":774,"children":775},{"style":217},[776],{"type":48,"value":455},{"type":43,"tag":91,"props":778,"children":779},{"style":217},[780],{"type":48,"value":326},{"type":43,"tag":91,"props":782,"children":783},{"style":705},[784],{"type":48,"value":571},{"type":43,"tag":91,"props":786,"children":787},{"style":338},[788],{"type":48,"value":713},{"type":43,"tag":91,"props":790,"children":791},{"style":217},[792],{"type":48,"value":220},{"type":43,"tag":91,"props":794,"children":796},{"class":93,"line":795},8,[797],{"type":43,"tag":91,"props":798,"children":799},{"emptyLinePlaceholder":484},[800],{"type":48,"value":487},{"type":43,"tag":91,"props":802,"children":804},{"class":93,"line":803},9,[805,810],{"type":43,"tag":91,"props":806,"children":807},{"style":205},[808],{"type":48,"value":809},"  return",{"type":43,"tag":91,"props":811,"children":812},{"style":338},[813],{"type":48,"value":814}," (\n",{"type":43,"tag":91,"props":816,"children":818},{"class":93,"line":817},10,[819],{"type":43,"tag":91,"props":820,"children":821},{"style":217},[822],{"type":48,"value":823},"    \u003C>\n",{"type":43,"tag":91,"props":825,"children":827},{"class":93,"line":826},11,[828,833,838,843,848,853,857,863,867,872,877,882],{"type":43,"tag":91,"props":829,"children":830},{"style":217},[831],{"type":48,"value":832},"      {",{"type":43,"tag":91,"props":834,"children":835},{"style":211},[836],{"type":48,"value":837},"messages",{"type":43,"tag":91,"props":839,"children":840},{"style":217},[841],{"type":48,"value":842},".",{"type":43,"tag":91,"props":844,"children":845},{"style":705},[846],{"type":48,"value":847},"map",{"type":43,"tag":91,"props":849,"children":850},{"style":211},[851],{"type":48,"value":852},"(",{"type":43,"tag":91,"props":854,"children":855},{"style":217},[856],{"type":48,"value":852},{"type":43,"tag":91,"props":858,"children":860},{"style":859},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[861],{"type":48,"value":862},"msg",{"type":43,"tag":91,"props":864,"children":865},{"style":217},[866],{"type":48,"value":740},{"type":43,"tag":91,"props":868,"children":869},{"style":859},[870],{"type":48,"value":871}," i",{"type":43,"tag":91,"props":873,"children":874},{"style":217},[875],{"type":48,"value":876},")",{"type":43,"tag":91,"props":878,"children":879},{"style":699},[880],{"type":48,"value":881}," =>",{"type":43,"tag":91,"props":883,"children":884},{"style":211},[885],{"type":48,"value":814},{"type":43,"tag":91,"props":887,"children":889},{"class":93,"line":888},12,[890,895],{"type":43,"tag":91,"props":891,"children":892},{"style":217},[893],{"type":48,"value":894},"        \u003C",{"type":43,"tag":91,"props":896,"children":897},{"style":98},[898],{"type":48,"value":899},"Streamdown\n",{"type":43,"tag":91,"props":901,"children":903},{"class":93,"line":902},13,[904,909,914,918,922,927],{"type":43,"tag":91,"props":905,"children":906},{"style":699},[907],{"type":48,"value":908},"          key",{"type":43,"tag":91,"props":910,"children":911},{"style":217},[912],{"type":48,"value":913},"={",{"type":43,"tag":91,"props":915,"children":916},{"style":211},[917],{"type":48,"value":862},{"type":43,"tag":91,"props":919,"children":920},{"style":217},[921],{"type":48,"value":842},{"type":43,"tag":91,"props":923,"children":924},{"style":211},[925],{"type":48,"value":926},"id",{"type":43,"tag":91,"props":928,"children":929},{"style":217},[930],{"type":48,"value":931},"}\n",{"type":43,"tag":91,"props":933,"children":935},{"class":93,"line":934},14,[936,941,946,951],{"type":43,"tag":91,"props":937,"children":938},{"style":699},[939],{"type":48,"value":940},"          plugins",{"type":43,"tag":91,"props":942,"children":943},{"style":217},[944],{"type":48,"value":945},"={{",{"type":43,"tag":91,"props":947,"children":948},{"style":211},[949],{"type":48,"value":950}," code ",{"type":43,"tag":91,"props":952,"children":953},{"style":217},[954],{"type":48,"value":955},"}}\n",{"type":43,"tag":91,"props":957,"children":959},{"class":93,"line":958},15,[960,965,970,974,979],{"type":43,"tag":91,"props":961,"children":962},{"style":699},[963],{"type":48,"value":964},"          caret",{"type":43,"tag":91,"props":966,"children":967},{"style":217},[968],{"type":48,"value":969},"=",{"type":43,"tag":91,"props":971,"children":972},{"style":217},[973],{"type":48,"value":369},{"type":43,"tag":91,"props":975,"children":976},{"style":104},[977],{"type":48,"value":978},"block",{"type":43,"tag":91,"props":980,"children":981},{"style":217},[982],{"type":48,"value":983},"\"\n",{"type":43,"tag":91,"props":985,"children":987},{"class":93,"line":986},16,[988,993,997,1002,1007,1012,1017,1021,1025,1030,1035,1041,1046,1051,1055,1060,1064,1068,1073,1077],{"type":43,"tag":91,"props":989,"children":990},{"style":699},[991],{"type":48,"value":992},"          isAnimating",{"type":43,"tag":91,"props":994,"children":995},{"style":217},[996],{"type":48,"value":913},{"type":43,"tag":91,"props":998,"children":999},{"style":211},[1000],{"type":48,"value":1001},"isLoading ",{"type":43,"tag":91,"props":1003,"children":1004},{"style":217},[1005],{"type":48,"value":1006},"&&",{"type":43,"tag":91,"props":1008,"children":1009},{"style":211},[1010],{"type":48,"value":1011}," i ",{"type":43,"tag":91,"props":1013,"children":1014},{"style":217},[1015],{"type":48,"value":1016},"===",{"type":43,"tag":91,"props":1018,"children":1019},{"style":211},[1020],{"type":48,"value":735},{"type":43,"tag":91,"props":1022,"children":1023},{"style":217},[1024],{"type":48,"value":842},{"type":43,"tag":91,"props":1026,"children":1027},{"style":211},[1028],{"type":48,"value":1029},"length ",{"type":43,"tag":91,"props":1031,"children":1032},{"style":217},[1033],{"type":48,"value":1034},"-",{"type":43,"tag":91,"props":1036,"children":1038},{"style":1037},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1039],{"type":48,"value":1040}," 1",{"type":43,"tag":91,"props":1042,"children":1043},{"style":217},[1044],{"type":48,"value":1045}," &&",{"type":43,"tag":91,"props":1047,"children":1048},{"style":211},[1049],{"type":48,"value":1050}," msg",{"type":43,"tag":91,"props":1052,"children":1053},{"style":217},[1054],{"type":48,"value":842},{"type":43,"tag":91,"props":1056,"children":1057},{"style":211},[1058],{"type":48,"value":1059},"role ",{"type":43,"tag":91,"props":1061,"children":1062},{"style":217},[1063],{"type":48,"value":1016},{"type":43,"tag":91,"props":1065,"children":1066},{"style":217},[1067],{"type":48,"value":465},{"type":43,"tag":91,"props":1069,"children":1070},{"style":104},[1071],{"type":48,"value":1072},"assistant",{"type":43,"tag":91,"props":1074,"children":1075},{"style":217},[1076],{"type":48,"value":474},{"type":43,"tag":91,"props":1078,"children":1079},{"style":217},[1080],{"type":48,"value":931},{"type":43,"tag":91,"props":1082,"children":1084},{"class":93,"line":1083},17,[1085],{"type":43,"tag":91,"props":1086,"children":1087},{"style":217},[1088],{"type":48,"value":1089},"        >\n",{"type":43,"tag":91,"props":1091,"children":1093},{"class":93,"line":1092},18,[1094,1099,1103,1107,1112],{"type":43,"tag":91,"props":1095,"children":1096},{"style":217},[1097],{"type":48,"value":1098},"          {",{"type":43,"tag":91,"props":1100,"children":1101},{"style":211},[1102],{"type":48,"value":862},{"type":43,"tag":91,"props":1104,"children":1105},{"style":217},[1106],{"type":48,"value":842},{"type":43,"tag":91,"props":1108,"children":1109},{"style":211},[1110],{"type":48,"value":1111},"content",{"type":43,"tag":91,"props":1113,"children":1114},{"style":217},[1115],{"type":48,"value":931},{"type":43,"tag":91,"props":1117,"children":1119},{"class":93,"line":1118},19,[1120,1125,1129],{"type":43,"tag":91,"props":1121,"children":1122},{"style":217},[1123],{"type":48,"value":1124},"        \u003C\u002F",{"type":43,"tag":91,"props":1126,"children":1127},{"style":98},[1128],{"type":48,"value":49},{"type":43,"tag":91,"props":1130,"children":1131},{"style":217},[1132],{"type":48,"value":522},{"type":43,"tag":91,"props":1134,"children":1136},{"class":93,"line":1135},20,[1137,1142],{"type":43,"tag":91,"props":1138,"children":1139},{"style":211},[1140],{"type":48,"value":1141},"      ))",{"type":43,"tag":91,"props":1143,"children":1144},{"style":217},[1145],{"type":48,"value":931},{"type":43,"tag":91,"props":1147,"children":1149},{"class":93,"line":1148},21,[1150,1155,1160,1165,1169,1174],{"type":43,"tag":91,"props":1151,"children":1152},{"style":217},[1153],{"type":48,"value":1154},"      \u003C",{"type":43,"tag":91,"props":1156,"children":1157},{"style":338},[1158],{"type":48,"value":1159},"form",{"type":43,"tag":91,"props":1161,"children":1162},{"style":699},[1163],{"type":48,"value":1164}," onSubmit",{"type":43,"tag":91,"props":1166,"children":1167},{"style":217},[1168],{"type":48,"value":913},{"type":43,"tag":91,"props":1170,"children":1171},{"style":211},[1172],{"type":48,"value":1173},"handleSubmit",{"type":43,"tag":91,"props":1175,"children":1176},{"style":217},[1177],{"type":48,"value":1178},"}>\n",{"type":43,"tag":91,"props":1180,"children":1182},{"class":93,"line":1181},22,[1183,1187,1192,1197,1201,1205,1210,1215,1219,1224,1228,1233,1237,1242],{"type":43,"tag":91,"props":1184,"children":1185},{"style":217},[1186],{"type":48,"value":894},{"type":43,"tag":91,"props":1188,"children":1189},{"style":338},[1190],{"type":48,"value":1191},"input",{"type":43,"tag":91,"props":1193,"children":1194},{"style":699},[1195],{"type":48,"value":1196}," value",{"type":43,"tag":91,"props":1198,"children":1199},{"style":217},[1200],{"type":48,"value":913},{"type":43,"tag":91,"props":1202,"children":1203},{"style":211},[1204],{"type":48,"value":1191},{"type":43,"tag":91,"props":1206,"children":1207},{"style":217},[1208],{"type":48,"value":1209},"} ",{"type":43,"tag":91,"props":1211,"children":1212},{"style":699},[1213],{"type":48,"value":1214},"onChange",{"type":43,"tag":91,"props":1216,"children":1217},{"style":217},[1218],{"type":48,"value":913},{"type":43,"tag":91,"props":1220,"children":1221},{"style":211},[1222],{"type":48,"value":1223},"handleInputChange",{"type":43,"tag":91,"props":1225,"children":1226},{"style":217},[1227],{"type":48,"value":1209},{"type":43,"tag":91,"props":1229,"children":1230},{"style":699},[1231],{"type":48,"value":1232},"disabled",{"type":43,"tag":91,"props":1234,"children":1235},{"style":217},[1236],{"type":48,"value":913},{"type":43,"tag":91,"props":1238,"children":1239},{"style":211},[1240],{"type":48,"value":1241},"isLoading",{"type":43,"tag":91,"props":1243,"children":1244},{"style":217},[1245],{"type":48,"value":1246},"} \u002F>\n",{"type":43,"tag":91,"props":1248,"children":1250},{"class":93,"line":1249},23,[1251,1256,1260],{"type":43,"tag":91,"props":1252,"children":1253},{"style":217},[1254],{"type":48,"value":1255},"      \u003C\u002F",{"type":43,"tag":91,"props":1257,"children":1258},{"style":338},[1259],{"type":48,"value":1159},{"type":43,"tag":91,"props":1261,"children":1262},{"style":217},[1263],{"type":48,"value":522},{"type":43,"tag":91,"props":1265,"children":1267},{"class":93,"line":1266},24,[1268],{"type":43,"tag":91,"props":1269,"children":1270},{"style":217},[1271],{"type":48,"value":1272},"    \u003C\u002F>\n",{"type":43,"tag":91,"props":1274,"children":1276},{"class":93,"line":1275},25,[1277,1282],{"type":43,"tag":91,"props":1278,"children":1279},{"style":338},[1280],{"type":48,"value":1281},"  )",{"type":43,"tag":91,"props":1283,"children":1284},{"style":217},[1285],{"type":48,"value":220},{"type":43,"tag":91,"props":1287,"children":1289},{"class":93,"line":1288},26,[1290],{"type":43,"tag":91,"props":1291,"children":1292},{"style":217},[1293],{"type":48,"value":931},{"type":43,"tag":73,"props":1295,"children":1297},{"id":1296},"_5-static-mode-blogs-docs",[1298],{"type":48,"value":1299},"5. Static Mode (Blogs, Docs)",{"type":43,"tag":80,"props":1301,"children":1303},{"className":426,"code":1302,"language":428,"meta":85,"style":85},"\u003CStreamdown mode=\"static\" plugins={{ code }}>\n  {content}\n\u003C\u002FStreamdown>\n",[1304],{"type":43,"tag":57,"props":1305,"children":1306},{"__ignoreMap":85},[1307,1358,1374],{"type":43,"tag":91,"props":1308,"children":1309},{"class":93,"line":94},[1310,1314,1318,1323,1327,1331,1336,1340,1345,1349,1353],{"type":43,"tag":91,"props":1311,"children":1312},{"style":217},[1313],{"type":48,"value":495},{"type":43,"tag":91,"props":1315,"children":1316},{"style":98},[1317],{"type":48,"value":49},{"type":43,"tag":91,"props":1319,"children":1320},{"style":699},[1321],{"type":48,"value":1322}," mode",{"type":43,"tag":91,"props":1324,"children":1325},{"style":217},[1326],{"type":48,"value":969},{"type":43,"tag":91,"props":1328,"children":1329},{"style":217},[1330],{"type":48,"value":369},{"type":43,"tag":91,"props":1332,"children":1333},{"style":104},[1334],{"type":48,"value":1335},"static",{"type":43,"tag":91,"props":1337,"children":1338},{"style":217},[1339],{"type":48,"value":369},{"type":43,"tag":91,"props":1341,"children":1342},{"style":699},[1343],{"type":48,"value":1344}," plugins",{"type":43,"tag":91,"props":1346,"children":1347},{"style":217},[1348],{"type":48,"value":945},{"type":43,"tag":91,"props":1350,"children":1351},{"style":211},[1352],{"type":48,"value":950},{"type":43,"tag":91,"props":1354,"children":1355},{"style":217},[1356],{"type":48,"value":1357},"}}>\n",{"type":43,"tag":91,"props":1359,"children":1360},{"class":93,"line":334},[1361,1366,1370],{"type":43,"tag":91,"props":1362,"children":1363},{"style":217},[1364],{"type":48,"value":1365},"  {",{"type":43,"tag":91,"props":1367,"children":1368},{"style":211},[1369],{"type":48,"value":1111},{"type":43,"tag":91,"props":1371,"children":1372},{"style":217},[1373],{"type":48,"value":931},{"type":43,"tag":91,"props":1375,"children":1376},{"class":93,"line":353},[1377,1382,1386],{"type":43,"tag":91,"props":1378,"children":1379},{"style":217},[1380],{"type":48,"value":1381},"\u003C\u002F",{"type":43,"tag":91,"props":1383,"children":1384},{"style":98},[1385],{"type":48,"value":49},{"type":43,"tag":91,"props":1387,"children":1388},{"style":217},[1389],{"type":48,"value":522},{"type":43,"tag":66,"props":1391,"children":1393},{"id":1392},"key-props",[1394],{"type":48,"value":1395},"Key Props",{"type":43,"tag":1397,"props":1398,"children":1399},"table",{},[1400,1429],{"type":43,"tag":1401,"props":1402,"children":1403},"thead",{},[1404],{"type":43,"tag":1405,"props":1406,"children":1407},"tr",{},[1408,1414,1419,1424],{"type":43,"tag":1409,"props":1410,"children":1411},"th",{},[1412],{"type":48,"value":1413},"Prop",{"type":43,"tag":1409,"props":1415,"children":1416},{},[1417],{"type":48,"value":1418},"Type",{"type":43,"tag":1409,"props":1420,"children":1421},{},[1422],{"type":48,"value":1423},"Default",{"type":43,"tag":1409,"props":1425,"children":1426},{},[1427],{"type":48,"value":1428},"Purpose",{"type":43,"tag":1430,"props":1431,"children":1432},"tbody",{},[1433,1465,1500,1530,1565,1595,1625,1660,1695,1730,1759,1790,1824,1854,1887,1920],{"type":43,"tag":1405,"props":1434,"children":1435},{},[1436,1446,1455,1460],{"type":43,"tag":1437,"props":1438,"children":1439},"td",{},[1440],{"type":43,"tag":57,"props":1441,"children":1443},{"className":1442},[],[1444],{"type":48,"value":1445},"children",{"type":43,"tag":1437,"props":1447,"children":1448},{},[1449],{"type":43,"tag":57,"props":1450,"children":1452},{"className":1451},[],[1453],{"type":48,"value":1454},"string",{"type":43,"tag":1437,"props":1456,"children":1457},{},[1458],{"type":48,"value":1459},"—",{"type":43,"tag":1437,"props":1461,"children":1462},{},[1463],{"type":48,"value":1464},"Markdown content",{"type":43,"tag":1405,"props":1466,"children":1467},{},[1468,1477,1486,1495],{"type":43,"tag":1437,"props":1469,"children":1470},{},[1471],{"type":43,"tag":57,"props":1472,"children":1474},{"className":1473},[],[1475],{"type":48,"value":1476},"mode",{"type":43,"tag":1437,"props":1478,"children":1479},{},[1480],{"type":43,"tag":57,"props":1481,"children":1483},{"className":1482},[],[1484],{"type":48,"value":1485},"\"streaming\" | \"static\"",{"type":43,"tag":1437,"props":1487,"children":1488},{},[1489],{"type":43,"tag":57,"props":1490,"children":1492},{"className":1491},[],[1493],{"type":48,"value":1494},"\"streaming\"",{"type":43,"tag":1437,"props":1496,"children":1497},{},[1498],{"type":48,"value":1499},"Rendering mode",{"type":43,"tag":1405,"props":1501,"children":1502},{},[1503,1512,1521,1525],{"type":43,"tag":1437,"props":1504,"children":1505},{},[1506],{"type":43,"tag":57,"props":1507,"children":1509},{"className":1508},[],[1510],{"type":48,"value":1511},"plugins",{"type":43,"tag":1437,"props":1513,"children":1514},{},[1515],{"type":43,"tag":57,"props":1516,"children":1518},{"className":1517},[],[1519],{"type":48,"value":1520},"{ code?, mermaid?, math?, cjk? }",{"type":43,"tag":1437,"props":1522,"children":1523},{},[1524],{"type":48,"value":1459},{"type":43,"tag":1437,"props":1526,"children":1527},{},[1528],{"type":48,"value":1529},"Feature plugins",{"type":43,"tag":1405,"props":1531,"children":1532},{},[1533,1542,1551,1560],{"type":43,"tag":1437,"props":1534,"children":1535},{},[1536],{"type":43,"tag":57,"props":1537,"children":1539},{"className":1538},[],[1540],{"type":48,"value":1541},"isAnimating",{"type":43,"tag":1437,"props":1543,"children":1544},{},[1545],{"type":43,"tag":57,"props":1546,"children":1548},{"className":1547},[],[1549],{"type":48,"value":1550},"boolean",{"type":43,"tag":1437,"props":1552,"children":1553},{},[1554],{"type":43,"tag":57,"props":1555,"children":1557},{"className":1556},[],[1558],{"type":48,"value":1559},"false",{"type":43,"tag":1437,"props":1561,"children":1562},{},[1563],{"type":48,"value":1564},"Streaming indicator",{"type":43,"tag":1405,"props":1566,"children":1567},{},[1568,1577,1586,1590],{"type":43,"tag":1437,"props":1569,"children":1570},{},[1571],{"type":43,"tag":57,"props":1572,"children":1574},{"className":1573},[],[1575],{"type":48,"value":1576},"caret",{"type":43,"tag":1437,"props":1578,"children":1579},{},[1580],{"type":43,"tag":57,"props":1581,"children":1583},{"className":1582},[],[1584],{"type":48,"value":1585},"\"block\" | \"circle\"",{"type":43,"tag":1437,"props":1587,"children":1588},{},[1589],{"type":48,"value":1459},{"type":43,"tag":1437,"props":1591,"children":1592},{},[1593],{"type":48,"value":1594},"Cursor style",{"type":43,"tag":1405,"props":1596,"children":1597},{},[1598,1607,1616,1620],{"type":43,"tag":1437,"props":1599,"children":1600},{},[1601],{"type":43,"tag":57,"props":1602,"children":1604},{"className":1603},[],[1605],{"type":48,"value":1606},"components",{"type":43,"tag":1437,"props":1608,"children":1609},{},[1610],{"type":43,"tag":57,"props":1611,"children":1613},{"className":1612},[],[1614],{"type":48,"value":1615},"Components",{"type":43,"tag":1437,"props":1617,"children":1618},{},[1619],{"type":48,"value":1459},{"type":43,"tag":1437,"props":1621,"children":1622},{},[1623],{"type":48,"value":1624},"Custom element overrides",{"type":43,"tag":1405,"props":1626,"children":1627},{},[1628,1637,1646,1655],{"type":43,"tag":1437,"props":1629,"children":1630},{},[1631],{"type":43,"tag":57,"props":1632,"children":1634},{"className":1633},[],[1635],{"type":48,"value":1636},"controls",{"type":43,"tag":1437,"props":1638,"children":1639},{},[1640],{"type":43,"tag":57,"props":1641,"children":1643},{"className":1642},[],[1644],{"type":48,"value":1645},"boolean | object",{"type":43,"tag":1437,"props":1647,"children":1648},{},[1649],{"type":43,"tag":57,"props":1650,"children":1652},{"className":1651},[],[1653],{"type":48,"value":1654},"true",{"type":43,"tag":1437,"props":1656,"children":1657},{},[1658],{"type":48,"value":1659},"Interactive buttons",{"type":43,"tag":1405,"props":1661,"children":1662},{},[1663,1672,1681,1690],{"type":43,"tag":1437,"props":1664,"children":1665},{},[1666],{"type":43,"tag":57,"props":1667,"children":1669},{"className":1668},[],[1670],{"type":48,"value":1671},"linkSafety",{"type":43,"tag":1437,"props":1673,"children":1674},{},[1675],{"type":43,"tag":57,"props":1676,"children":1678},{"className":1677},[],[1679],{"type":48,"value":1680},"LinkSafetyConfig",{"type":43,"tag":1437,"props":1682,"children":1683},{},[1684],{"type":43,"tag":57,"props":1685,"children":1687},{"className":1686},[],[1688],{"type":48,"value":1689},"{ enabled: true }",{"type":43,"tag":1437,"props":1691,"children":1692},{},[1693],{"type":48,"value":1694},"Link confirmation modal",{"type":43,"tag":1405,"props":1696,"children":1697},{},[1698,1707,1716,1725],{"type":43,"tag":1437,"props":1699,"children":1700},{},[1701],{"type":43,"tag":57,"props":1702,"children":1704},{"className":1703},[],[1705],{"type":48,"value":1706},"shikiTheme",{"type":43,"tag":1437,"props":1708,"children":1709},{},[1710],{"type":43,"tag":57,"props":1711,"children":1713},{"className":1712},[],[1714],{"type":48,"value":1715},"[light, dark]",{"type":43,"tag":1437,"props":1717,"children":1718},{},[1719],{"type":43,"tag":57,"props":1720,"children":1722},{"className":1721},[],[1723],{"type":48,"value":1724},"['github-light', 'github-dark']",{"type":43,"tag":1437,"props":1726,"children":1727},{},[1728],{"type":48,"value":1729},"Code themes",{"type":43,"tag":1405,"props":1731,"children":1732},{},[1733,1742,1750,1754],{"type":43,"tag":1437,"props":1734,"children":1735},{},[1736],{"type":43,"tag":57,"props":1737,"children":1739},{"className":1738},[],[1740],{"type":48,"value":1741},"className",{"type":43,"tag":1437,"props":1743,"children":1744},{},[1745],{"type":43,"tag":57,"props":1746,"children":1748},{"className":1747},[],[1749],{"type":48,"value":1454},{"type":43,"tag":1437,"props":1751,"children":1752},{},[1753],{"type":48,"value":1459},{"type":43,"tag":1437,"props":1755,"children":1756},{},[1757],{"type":48,"value":1758},"Container class",{"type":43,"tag":1405,"props":1760,"children":1761},{},[1762,1771,1780,1785],{"type":43,"tag":1437,"props":1763,"children":1764},{},[1765],{"type":43,"tag":57,"props":1766,"children":1768},{"className":1767},[],[1769],{"type":48,"value":1770},"allowedElements",{"type":43,"tag":1437,"props":1772,"children":1773},{},[1774],{"type":43,"tag":57,"props":1775,"children":1777},{"className":1776},[],[1778],{"type":48,"value":1779},"string[]",{"type":43,"tag":1437,"props":1781,"children":1782},{},[1783],{"type":48,"value":1784},"all",{"type":43,"tag":1437,"props":1786,"children":1787},{},[1788],{"type":48,"value":1789},"Tag names to allow",{"type":43,"tag":1405,"props":1791,"children":1792},{},[1793,1802,1810,1819],{"type":43,"tag":1437,"props":1794,"children":1795},{},[1796],{"type":43,"tag":57,"props":1797,"children":1799},{"className":1798},[],[1800],{"type":48,"value":1801},"disallowedElements",{"type":43,"tag":1437,"props":1803,"children":1804},{},[1805],{"type":43,"tag":57,"props":1806,"children":1808},{"className":1807},[],[1809],{"type":48,"value":1779},{"type":43,"tag":1437,"props":1811,"children":1812},{},[1813],{"type":43,"tag":57,"props":1814,"children":1816},{"className":1815},[],[1817],{"type":48,"value":1818},"[]",{"type":43,"tag":1437,"props":1820,"children":1821},{},[1822],{"type":48,"value":1823},"Tag names to disallow",{"type":43,"tag":1405,"props":1825,"children":1826},{},[1827,1836,1845,1849],{"type":43,"tag":1437,"props":1828,"children":1829},{},[1830],{"type":43,"tag":57,"props":1831,"children":1833},{"className":1832},[],[1834],{"type":48,"value":1835},"allowElement",{"type":43,"tag":1437,"props":1837,"children":1838},{},[1839],{"type":43,"tag":57,"props":1840,"children":1842},{"className":1841},[],[1843],{"type":48,"value":1844},"AllowElement",{"type":43,"tag":1437,"props":1846,"children":1847},{},[1848],{"type":48,"value":1459},{"type":43,"tag":1437,"props":1850,"children":1851},{},[1852],{"type":48,"value":1853},"Custom element filter",{"type":43,"tag":1405,"props":1855,"children":1856},{},[1857,1866,1874,1882],{"type":43,"tag":1437,"props":1858,"children":1859},{},[1860],{"type":43,"tag":57,"props":1861,"children":1863},{"className":1862},[],[1864],{"type":48,"value":1865},"unwrapDisallowed",{"type":43,"tag":1437,"props":1867,"children":1868},{},[1869],{"type":43,"tag":57,"props":1870,"children":1872},{"className":1871},[],[1873],{"type":48,"value":1550},{"type":43,"tag":1437,"props":1875,"children":1876},{},[1877],{"type":43,"tag":57,"props":1878,"children":1880},{"className":1879},[],[1881],{"type":48,"value":1559},{"type":43,"tag":1437,"props":1883,"children":1884},{},[1885],{"type":48,"value":1886},"Keep children of disallowed elements",{"type":43,"tag":1405,"props":1888,"children":1889},{},[1890,1899,1907,1915],{"type":43,"tag":1437,"props":1891,"children":1892},{},[1893],{"type":43,"tag":57,"props":1894,"children":1896},{"className":1895},[],[1897],{"type":48,"value":1898},"skipHtml",{"type":43,"tag":1437,"props":1900,"children":1901},{},[1902],{"type":43,"tag":57,"props":1903,"children":1905},{"className":1904},[],[1906],{"type":48,"value":1550},{"type":43,"tag":1437,"props":1908,"children":1909},{},[1910],{"type":43,"tag":57,"props":1911,"children":1913},{"className":1912},[],[1914],{"type":48,"value":1559},{"type":43,"tag":1437,"props":1916,"children":1917},{},[1918],{"type":48,"value":1919},"Ignore raw HTML",{"type":43,"tag":1405,"props":1921,"children":1922},{},[1923,1932,1941,1950],{"type":43,"tag":1437,"props":1924,"children":1925},{},[1926],{"type":43,"tag":57,"props":1927,"children":1929},{"className":1928},[],[1930],{"type":48,"value":1931},"urlTransform",{"type":43,"tag":1437,"props":1933,"children":1934},{},[1935],{"type":43,"tag":57,"props":1936,"children":1938},{"className":1937},[],[1939],{"type":48,"value":1940},"UrlTransform",{"type":43,"tag":1437,"props":1942,"children":1943},{},[1944],{"type":43,"tag":57,"props":1945,"children":1947},{"className":1946},[],[1948],{"type":48,"value":1949},"defaultUrlTransform",{"type":43,"tag":1437,"props":1951,"children":1952},{},[1953],{"type":48,"value":1954},"Transform\u002Fsanitize URLs",{"type":43,"tag":51,"props":1956,"children":1957},{},[1958,1960,1966],{"type":48,"value":1959},"For full API reference, see ",{"type":43,"tag":1961,"props":1962,"children":1964},"a",{"href":1963},"references\u002Fapi.md",[1965],{"type":48,"value":1963},{"type":48,"value":842},{"type":43,"tag":66,"props":1968,"children":1970},{"id":1969},"plugin-quick-reference",[1971],{"type":48,"value":1972},"Plugin Quick Reference",{"type":43,"tag":1397,"props":1974,"children":1975},{},[1976,1996],{"type":43,"tag":1401,"props":1977,"children":1978},{},[1979],{"type":43,"tag":1405,"props":1980,"children":1981},{},[1982,1987,1992],{"type":43,"tag":1409,"props":1983,"children":1984},{},[1985],{"type":48,"value":1986},"Plugin",{"type":43,"tag":1409,"props":1988,"children":1989},{},[1990],{"type":48,"value":1991},"Package",{"type":43,"tag":1409,"props":1993,"children":1994},{},[1995],{"type":48,"value":1428},{"type":43,"tag":1430,"props":1997,"children":1998},{},[1999,2020,2042,2064],{"type":43,"tag":1405,"props":2000,"children":2001},{},[2002,2007,2015],{"type":43,"tag":1437,"props":2003,"children":2004},{},[2005],{"type":48,"value":2006},"Code",{"type":43,"tag":1437,"props":2008,"children":2009},{},[2010],{"type":43,"tag":57,"props":2011,"children":2013},{"className":2012},[],[2014],{"type":48,"value":668},{"type":43,"tag":1437,"props":2016,"children":2017},{},[2018],{"type":48,"value":2019},"Syntax highlighting (Shiki, 200+ languages)",{"type":43,"tag":1405,"props":2021,"children":2022},{},[2023,2028,2037],{"type":43,"tag":1437,"props":2024,"children":2025},{},[2026],{"type":48,"value":2027},"Mermaid",{"type":43,"tag":1437,"props":2029,"children":2030},{},[2031],{"type":43,"tag":57,"props":2032,"children":2034},{"className":2033},[],[2035],{"type":48,"value":2036},"@streamdown\u002Fmermaid",{"type":43,"tag":1437,"props":2038,"children":2039},{},[2040],{"type":48,"value":2041},"Diagrams (flowcharts, sequence, etc.)",{"type":43,"tag":1405,"props":2043,"children":2044},{},[2045,2050,2059],{"type":43,"tag":1437,"props":2046,"children":2047},{},[2048],{"type":48,"value":2049},"Math",{"type":43,"tag":1437,"props":2051,"children":2052},{},[2053],{"type":43,"tag":57,"props":2054,"children":2056},{"className":2055},[],[2057],{"type":48,"value":2058},"@streamdown\u002Fmath",{"type":43,"tag":1437,"props":2060,"children":2061},{},[2062],{"type":48,"value":2063},"LaTeX via KaTeX (requires CSS import)",{"type":43,"tag":1405,"props":2065,"children":2066},{},[2067,2072,2081],{"type":43,"tag":1437,"props":2068,"children":2069},{},[2070],{"type":48,"value":2071},"CJK",{"type":43,"tag":1437,"props":2073,"children":2074},{},[2075],{"type":43,"tag":57,"props":2076,"children":2078},{"className":2077},[],[2079],{"type":48,"value":2080},"@streamdown\u002Fcjk",{"type":43,"tag":1437,"props":2082,"children":2083},{},[2084],{"type":48,"value":2085},"Chinese\u002FJapanese\u002FKorean text support",{"type":43,"tag":51,"props":2087,"children":2088},{},[2089],{"type":43,"tag":166,"props":2090,"children":2091},{},[2092],{"type":48,"value":2093},"Math requires CSS:",{"type":43,"tag":80,"props":2095,"children":2097},{"className":426,"code":2096,"language":428,"meta":85,"style":85},"import 'katex\u002Fdist\u002Fkatex.min.css';\n",[2098],{"type":43,"tag":57,"props":2099,"children":2100},{"__ignoreMap":85},[2101],{"type":43,"tag":91,"props":2102,"children":2103},{"class":93,"line":94},[2104,2108,2112,2117,2121],{"type":43,"tag":91,"props":2105,"children":2106},{"style":205},[2107],{"type":48,"value":440},{"type":43,"tag":91,"props":2109,"children":2110},{"style":217},[2111],{"type":48,"value":465},{"type":43,"tag":91,"props":2113,"children":2114},{"style":104},[2115],{"type":48,"value":2116},"katex\u002Fdist\u002Fkatex.min.css",{"type":43,"tag":91,"props":2118,"children":2119},{"style":217},[2120],{"type":48,"value":474},{"type":43,"tag":91,"props":2122,"children":2123},{"style":217},[2124],{"type":48,"value":220},{"type":43,"tag":51,"props":2126,"children":2127},{},[2128,2130,2135],{"type":48,"value":2129},"For plugin configuration details, see ",{"type":43,"tag":1961,"props":2131,"children":2133},{"href":2132},"references\u002Fplugins.md",[2134],{"type":48,"value":2132},{"type":48,"value":842},{"type":43,"tag":66,"props":2137,"children":2139},{"id":2138},"references",[2140],{"type":48,"value":2141},"References",{"type":43,"tag":51,"props":2143,"children":2144},{},[2145],{"type":48,"value":2146},"Use these for deeper implementation details:",{"type":43,"tag":241,"props":2148,"children":2149},{},[2150,2162,2174,2187,2200],{"type":43,"tag":245,"props":2151,"children":2152},{},[2153,2160],{"type":43,"tag":166,"props":2154,"children":2155},{},[2156],{"type":43,"tag":1961,"props":2157,"children":2158},{"href":1963},[2159],{"type":48,"value":1963},{"type":48,"value":2161}," — Complete props, types, and interfaces",{"type":43,"tag":245,"props":2163,"children":2164},{},[2165,2172],{"type":43,"tag":166,"props":2166,"children":2167},{},[2168],{"type":43,"tag":1961,"props":2169,"children":2170},{"href":2132},[2171],{"type":48,"value":2132},{"type":48,"value":2173}," — Plugin setup, configuration, and customization",{"type":43,"tag":245,"props":2175,"children":2176},{},[2177,2185],{"type":43,"tag":166,"props":2178,"children":2179},{},[2180],{"type":43,"tag":1961,"props":2181,"children":2183},{"href":2182},"references\u002Fstyling.md",[2184],{"type":48,"value":2182},{"type":48,"value":2186}," — CSS variables, data attributes, custom components, theme examples",{"type":43,"tag":245,"props":2188,"children":2189},{},[2190,2198],{"type":43,"tag":166,"props":2191,"children":2192},{},[2193],{"type":43,"tag":1961,"props":2194,"children":2196},{"href":2195},"references\u002Fsecurity.md",[2197],{"type":48,"value":2195},{"type":48,"value":2199}," — Hardening, link safety, custom HTML tags, production config",{"type":43,"tag":245,"props":2201,"children":2202},{},[2203,2211],{"type":43,"tag":166,"props":2204,"children":2205},{},[2206],{"type":43,"tag":1961,"props":2207,"children":2209},{"href":2208},"references\u002Ffeatures.md",[2210],{"type":48,"value":2208},{"type":48,"value":2212}," — Carets, remend, static mode, controls, GFM, memoization, troubleshooting",{"type":43,"tag":66,"props":2214,"children":2216},{"id":2215},"example-configurations",[2217],{"type":48,"value":2218},"Example Configurations",{"type":43,"tag":51,"props":2220,"children":2221},{},[2222,2224,2230],{"type":48,"value":2223},"Copy and adapt from ",{"type":43,"tag":57,"props":2225,"children":2227},{"className":2226},[],[2228],{"type":48,"value":2229},"assets\u002Fexamples\u002F",{"type":48,"value":190},{"type":43,"tag":241,"props":2232,"children":2233},{},[2234,2248,2262,2276,2290],{"type":43,"tag":245,"props":2235,"children":2236},{},[2237,2246],{"type":43,"tag":166,"props":2238,"children":2239},{},[2240],{"type":43,"tag":1961,"props":2241,"children":2243},{"href":2242},"assets\u002Fexamples\u002Fbasic-streaming.tsx",[2244],{"type":48,"value":2245},"basic-streaming.tsx",{"type":48,"value":2247}," — Minimal AI chat with Vercel AI SDK",{"type":43,"tag":245,"props":2249,"children":2250},{},[2251,2260],{"type":43,"tag":166,"props":2252,"children":2253},{},[2254],{"type":43,"tag":1961,"props":2255,"children":2257},{"href":2256},"assets\u002Fexamples\u002Fwith-caret.tsx",[2258],{"type":48,"value":2259},"with-caret.tsx",{"type":48,"value":2261}," — Streaming with block caret cursor",{"type":43,"tag":245,"props":2263,"children":2264},{},[2265,2274],{"type":43,"tag":166,"props":2266,"children":2267},{},[2268],{"type":43,"tag":1961,"props":2269,"children":2271},{"href":2270},"assets\u002Fexamples\u002Ffull-featured.tsx",[2272],{"type":48,"value":2273},"full-featured.tsx",{"type":48,"value":2275}," — All plugins, carets, link safety, controls",{"type":43,"tag":245,"props":2277,"children":2278},{},[2279,2288],{"type":43,"tag":166,"props":2280,"children":2281},{},[2282],{"type":43,"tag":1961,"props":2283,"children":2285},{"href":2284},"assets\u002Fexamples\u002Fstatic-mode.tsx",[2286],{"type":48,"value":2287},"static-mode.tsx",{"type":48,"value":2289}," — Blog\u002Fdocs rendering",{"type":43,"tag":245,"props":2291,"children":2292},{},[2293,2302],{"type":43,"tag":166,"props":2294,"children":2295},{},[2296],{"type":43,"tag":1961,"props":2297,"children":2299},{"href":2298},"assets\u002Fexamples\u002Fcustom-security.tsx",[2300],{"type":48,"value":2301},"custom-security.tsx",{"type":48,"value":2303}," — Strict security for AI content",{"type":43,"tag":66,"props":2305,"children":2307},{"id":2306},"common-gotchas",[2308],{"type":48,"value":2309},"Common Gotchas",{"type":43,"tag":2311,"props":2312,"children":2313},"ol",{},[2314,2344,2359,2384,2399,2415,2439,2455],{"type":43,"tag":245,"props":2315,"children":2316},{},[2317,2322,2324,2329,2331,2336,2338],{"type":43,"tag":166,"props":2318,"children":2319},{},[2320],{"type":48,"value":2321},"Tailwind styles missing",{"type":48,"value":2323}," — Add ",{"type":43,"tag":57,"props":2325,"children":2327},{"className":2326},[],[2328],{"type":48,"value":208},{"type":48,"value":2330}," directive or ",{"type":43,"tag":57,"props":2332,"children":2334},{"className":2333},[],[2335],{"type":48,"value":1111},{"type":48,"value":2337}," entry for ",{"type":43,"tag":57,"props":2339,"children":2341},{"className":2340},[],[2342],{"type":48,"value":2343},"node_modules\u002Fstreamdown\u002Fdist\u002F*.js",{"type":43,"tag":245,"props":2345,"children":2346},{},[2347,2352,2354],{"type":43,"tag":166,"props":2348,"children":2349},{},[2350],{"type":48,"value":2351},"Math not rendering",{"type":48,"value":2353}," — Import ",{"type":43,"tag":57,"props":2355,"children":2357},{"className":2356},[],[2358],{"type":48,"value":2116},{"type":43,"tag":245,"props":2360,"children":2361},{},[2362,2367,2369,2374,2376,2382],{"type":43,"tag":166,"props":2363,"children":2364},{},[2365],{"type":48,"value":2366},"Caret not showing",{"type":48,"value":2368}," — Both ",{"type":43,"tag":57,"props":2370,"children":2372},{"className":2371},[],[2373],{"type":48,"value":1576},{"type":48,"value":2375}," prop AND ",{"type":43,"tag":57,"props":2377,"children":2379},{"className":2378},[],[2380],{"type":48,"value":2381},"isAnimating={true}",{"type":48,"value":2383}," are required",{"type":43,"tag":245,"props":2385,"children":2386},{},[2387,2392,2394],{"type":43,"tag":166,"props":2388,"children":2389},{},[2390],{"type":48,"value":2391},"Copy buttons during streaming",{"type":48,"value":2393}," — Disabled automatically when ",{"type":43,"tag":57,"props":2395,"children":2397},{"className":2396},[],[2398],{"type":48,"value":2381},{"type":43,"tag":245,"props":2400,"children":2401},{},[2402,2407,2409],{"type":43,"tag":166,"props":2403,"children":2404},{},[2405],{"type":48,"value":2406},"Link safety modal appearing",{"type":48,"value":2408}," — Enabled by default; disable with ",{"type":43,"tag":57,"props":2410,"children":2412},{"className":2411},[],[2413],{"type":48,"value":2414},"linkSafety={{ enabled: false }}",{"type":43,"tag":245,"props":2416,"children":2417},{},[2418,2423,2425,2431,2433],{"type":43,"tag":166,"props":2419,"children":2420},{},[2421],{"type":48,"value":2422},"Shiki warning in Next.js",{"type":48,"value":2424}," — Install ",{"type":43,"tag":57,"props":2426,"children":2428},{"className":2427},[],[2429],{"type":48,"value":2430},"shiki",{"type":48,"value":2432}," explicitly, add to ",{"type":43,"tag":57,"props":2434,"children":2436},{"className":2435},[],[2437],{"type":48,"value":2438},"transpilePackages",{"type":43,"tag":245,"props":2440,"children":2441},{},[2442,2453],{"type":43,"tag":166,"props":2443,"children":2444},{},[2445,2451],{"type":43,"tag":57,"props":2446,"children":2448},{"className":2447},[],[2449],{"type":48,"value":2450},"allowedTags",{"type":48,"value":2452}," not working",{"type":48,"value":2454}," — Only works with default rehype plugins",{"type":43,"tag":245,"props":2456,"children":2457},{},[2458,2477],{"type":43,"tag":166,"props":2459,"children":2460},{},[2461,2463,2469,2471],{"type":48,"value":2462},"Math uses ",{"type":43,"tag":57,"props":2464,"children":2466},{"className":2465},[],[2467],{"type":48,"value":2468},"$$",{"type":48,"value":2470}," not ",{"type":43,"tag":57,"props":2472,"children":2474},{"className":2473},[],[2475],{"type":48,"value":2476},"$",{"type":48,"value":2478}," — Single dollar is disabled by default to avoid currency conflicts",{"type":43,"tag":2480,"props":2481,"children":2482},"style",{},[2483],{"type":48,"value":2484},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":2486,"total":94},[2487],{"slug":4,"name":4,"fn":5,"description":6,"org":2488,"tags":2489,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2490,2491,2492,2493],{"name":21,"slug":22,"type":13},{"name":18,"slug":19,"type":13},{"name":15,"slug":16,"type":13},{"name":9,"slug":8,"type":13},{"items":2495,"total":2672},[2496,2516,2530,2549,2560,2575,2591,2609,2621,2640,2652,2662],{"slug":2497,"name":2497,"fn":2498,"description":2499,"org":2500,"tags":2501,"stars":2513,"repoUrl":2514,"updatedAt":2515},"next-cache-components-adoption","enable and migrate to Next.js Cache Components","Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the `cacheComponents` flag, work through a flood of blocking-prerender \u002F instant validation errors, run the `cache-components-instant-false` codemod, or decide between opting routes out with `export const instant = false` and fixing them in place.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2502,2505,2506,2509,2512],{"name":2503,"slug":2504,"type":13},"Caching","caching",{"name":21,"slug":22,"type":13},{"name":2507,"slug":2508,"type":13},"Migration","migration",{"name":2510,"slug":2511,"type":13},"Next.js","next-js",{"name":9,"slug":8,"type":13},141208,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fnext.js","2026-07-24T05:38:30.118542",{"slug":2517,"name":2517,"fn":2518,"description":2519,"org":2520,"tags":2521,"stars":2513,"repoUrl":2514,"updatedAt":2529},"next-cache-components-optimizer","optimize Next.js cache components","Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components \u002F PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next\u002Fplaywright instant() e2e and work it to green, one verified route at a time; the shipped test then guards against regression. Use when asked to make a route's navigation instant (its static shell commits immediately), fix a route whose static shell isn't prerendered\u002Fserved\u002Fprefetched, grow a route's static shell or fix its slow first paint, diagnose which Suspense boundary keeps a route out of its static shell, or write the instant() e2e guard for one. Requires Next.js 16.3+ with cacheComponents; directs an upgrade if older.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2522,2523,2524,2525,2528],{"name":2503,"slug":2504,"type":13},{"name":21,"slug":22,"type":13},{"name":2510,"slug":2511,"type":13},{"name":2526,"slug":2527,"type":13},"Performance","performance",{"name":9,"slug":8,"type":13},"2026-07-30T05:31:10.674078",{"slug":2531,"name":2531,"fn":2532,"description":2533,"org":2534,"tags":2535,"stars":2513,"repoUrl":2514,"updatedAt":2548},"next-dev-loop","verify Next.js runtime behavior","Verify Next.js runtime behavior after editing app code. Use this skill to confirm a change actually works in a running app — not just that it compiles or type-checks. Combines \u002F_next\u002Fmcp (Next.js's view) with agent-browser (the browser's view). Requires a running `next dev`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2536,2539,2540,2543,2544,2545],{"name":2537,"slug":2538,"type":13},"Debugging","debugging",{"name":21,"slug":22,"type":13},{"name":2541,"slug":2542,"type":13},"Local Development","local-development",{"name":2510,"slug":2511,"type":13},{"name":9,"slug":8,"type":13},{"name":2546,"slug":2547,"type":13},"Web Development","web-development","2026-05-22T06:45:28.627735",{"slug":2550,"name":2550,"fn":2551,"description":2552,"org":2553,"tags":2554,"stars":2513,"repoUrl":2514,"updatedAt":2559},"next-partial-prefetching-adoption","adopt Partial Prefetching in Next.js apps","Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the `partialPrefetching` flag, opt routes in with `export const prefetch = 'partial'`, audit `\u003CLink prefetch={true}>` calls, or resolve the link-prefetch-partial and instant-shell-url-data insights.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2555,2556,2557,2558],{"name":21,"slug":22,"type":13},{"name":2510,"slug":2511,"type":13},{"name":2526,"slug":2527,"type":13},{"name":9,"slug":8,"type":13},"2026-07-30T05:31:11.591864",{"slug":2561,"name":2561,"fn":2562,"description":2563,"org":2564,"tags":2565,"stars":2572,"repoUrl":2573,"updatedAt":2574},"turborepo","manage monorepos with Turborepo","Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines,\ndependsOn, caching, remote cache, the \"turbo\" CLI, --filter, --affected, CI optimization, environment\nvariables, internal packages, monorepo structure\u002Fbest practices, and boundaries.\n\nUse when user: configures tasks\u002Fworkflows\u002Fpipelines, creates packages, sets up\nmonorepo, shares code between apps, runs changed\u002Faffected packages, debugs cache,\nor has apps\u002Fpackages directories.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2566,2569,2570],{"name":2567,"slug":2568,"type":13},"CI\u002FCD","ci-cd",{"name":2526,"slug":2527,"type":13},{"name":2571,"slug":2561,"type":13},"Turborepo",30809,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fturborepo","2026-07-30T05:32:14.920116",{"slug":2576,"name":2576,"fn":2577,"description":2578,"org":2579,"tags":2580,"stars":2588,"repoUrl":2589,"updatedAt":2590},"add-function-examples","add AI function examples for testing","Guide for adding new AI function examples, for testing specific features against the actual provider APIs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2581,2584,2587],{"name":2582,"slug":2583,"type":13},"AI SDK","ai-sdk",{"name":2585,"slug":2586,"type":13},"Testing","testing",{"name":9,"slug":8,"type":13},25670,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai","2026-04-06T18:55:51.318866",{"slug":2592,"name":2592,"fn":2593,"description":2594,"org":2595,"tags":2596,"stars":2588,"repoUrl":2589,"updatedAt":2608},"add-harness-package","add AI SDK harness packages","Guide for adding new AI SDK harness packages. Use when creating a new @ai-sdk\u002Fharness-\u003Cname> package that adapts a coding-agent runtime to HarnessV1.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2597,2600,2601,2604,2607],{"name":2598,"slug":2599,"type":13},"Agents","agents",{"name":2582,"slug":2583,"type":13},{"name":2602,"slug":2603,"type":13},"Harness","harness",{"name":2605,"slug":2606,"type":13},"SDK","sdk",{"name":9,"slug":8,"type":13},"2026-06-18T08:29:19.858737",{"slug":2610,"name":2610,"fn":2611,"description":2612,"org":2613,"tags":2614,"stars":2588,"repoUrl":2589,"updatedAt":2620},"add-provider-package","add new provider packages to AI SDK","Guide for adding new AI provider packages to the AI SDK. Use when creating a new @ai-sdk\u002F\u003Cprovider> package to integrate an AI service into the SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2615,2616,2619],{"name":2582,"slug":2583,"type":13},{"name":2617,"slug":2618,"type":13},"API Development","api-development",{"name":9,"slug":8,"type":13},"2026-04-06T18:55:47.45549",{"slug":2622,"name":2622,"fn":2623,"description":2624,"org":2625,"tags":2626,"stars":2588,"repoUrl":2589,"updatedAt":2639},"adr-skill","create and maintain architecture decision records","Create and maintain Architecture Decision Records (ADRs) optimized for agentic coding workflows. Use when you need to propose, write, update, accept\u002Freject, deprecate, or supersede an ADR; bootstrap an adr folder and index; consult existing ADRs before implementing changes; or enforce ADR conventions. This skill uses Socratic questioning to capture intent before drafting, and validates output against an agent-readiness checklist.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2627,2630,2633,2636],{"name":2628,"slug":2629,"type":13},"ADR","adr",{"name":2631,"slug":2632,"type":13},"Architecture","architecture",{"name":2634,"slug":2635,"type":13},"Documentation","documentation",{"name":2637,"slug":2638,"type":13},"Engineering","engineering","2026-04-06T18:55:50.043694",{"slug":2583,"name":2583,"fn":2641,"description":2642,"org":2643,"tags":2644,"stars":2588,"repoUrl":2589,"updatedAt":2651},"build AI features with Vercel AI SDK","Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: \"AI SDK\", \"Vercel AI SDK\", \"generateText\", \"streamText\", \"add AI to my app\", \"build an agent\", \"tool calling\", \"structured output\", \"useChat\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2645,2646,2647,2650],{"name":2598,"slug":2599,"type":13},{"name":2582,"slug":2583,"type":13},{"name":2648,"slug":2649,"type":13},"LLM","llm",{"name":9,"slug":8,"type":13},"2026-04-06T18:55:48.739463",{"slug":2653,"name":2653,"fn":2654,"description":2655,"org":2656,"tags":2657,"stars":2588,"repoUrl":2589,"updatedAt":2661},"capture-api-response-test-fixture","capture API response test fixtures","Capture API response test fixture.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2658,2659,2660],{"name":2617,"slug":2618,"type":13},{"name":2585,"slug":2586,"type":13},{"name":9,"slug":8,"type":13},"2026-04-06T18:55:56.374433",{"slug":2663,"name":2663,"fn":2664,"description":2665,"org":2666,"tags":2667,"stars":2588,"repoUrl":2589,"updatedAt":2671},"develop-ai-functions-example","develop AI SDK function examples","Develop examples for AI SDK functions. Use when creating, running, or modifying examples under examples\u002Fai-functions\u002Fsrc to validate provider support, demonstrate features, or create test fixtures.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2668,2669,2670],{"name":2582,"slug":2583,"type":13},{"name":2585,"slug":2586,"type":13},{"name":9,"slug":8,"type":13},"2026-04-06T18:55:55.088956",68]