[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-vercel-ai-elements":3,"mdc-iv5nbd-key":37,"related-org-vercel-ai-elements":1900,"related-repo-vercel-ai-elements":2076},{"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},"ai-elements","build AI chat interfaces with ai-elements","Build AI chat interfaces using ai-elements components — conversations, messages, tool displays, prompt inputs, and more. Use when the user wants to build a chatbot, AI assistant UI, or any AI-powered chat interface.",{"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},"AI SDK","ai-sdk",{"name":21,"slug":22,"type":13},"Frontend","frontend",2272,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai-elements","2026-04-06T18:56:44.062525",null,263,[29,30,31,8],"ai","elements","shadcn-ui",{"repoUrl":24,"stars":23,"forks":27,"topics":33,"description":34},[29,30,31,8],"AI Elements is a component library and custom registry built on top of shadcn\u002Fui to help you build AI-native applications faster.","https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai-elements\u002Ftree\u002FHEAD\u002Fskills\u002Fai-elements","---\nname: ai-elements\ndescription: Build AI chat interfaces using ai-elements components — conversations, messages, tool displays, prompt inputs, and more. Use when the user wants to build a chatbot, AI assistant UI, or any AI-powered chat interface.\n---\n\n# AI Elements\n\n[AI Elements](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fai-elements) is a component library and custom registry built on top of [shadcn\u002Fui](https:\u002F\u002Fui.shadcn.com\u002F) to help you build AI-native applications faster. It provides pre-built components like conversations, messages and more.\n\nInstalling AI Elements is straightforward and can be done in a couple of ways. You can use the dedicated CLI command for the fastest setup, or integrate via the standard shadcn\u002Fui CLI if you've already adopted shadcn's workflow.\n\n> **IMPORTANT:** Run all CLI commands using the project's package runner: `npx ai-elements@latest`, `pnpm dlx ai-elements@latest`, or `bunx --bun ai-elements@latest` — based on the project's `packageManager`. Examples below use `npx ai-elements@latest` but substitute the correct runner for the project.\n\n## Prerequisites\n\nBefore installing AI Elements, make sure your environment meets the following requirements:\n\n- [Node.js](https:\u002F\u002Fnodejs.org\u002Fen\u002Fdownload\u002F), version 18 or later\n- A [Next.js](https:\u002F\u002Fnextjs.org\u002F) project with the [AI SDK](https:\u002F\u002Fai-sdk.dev\u002F) installed.\n- [shadcn\u002Fui](https:\u002F\u002Fui.shadcn.com\u002F) installed in your project. If you don't have it installed, running any install command will automatically install it for you.\n- We also highly recommend using the [AI Gateway](https:\u002F\u002Fvercel.com\u002Fdocs\u002Fai-gateway) and adding `AI_GATEWAY_API_KEY` to your `env.local` so you don't have to use an API key from every provider. AI Gateway also gives $5 in usage per month so you can experiment with models. You can obtain an API key [here](https:\u002F\u002Fvercel.com\u002Fd?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys&title=Get%20your%20AI%20Gateway%20key).\n\n## Installing Components\n\nYou can install AI Elements components using either the AI Elements CLI or the shadcn\u002Fui CLI. Both achieve the same result: adding the selected component’s code and any needed dependencies to your project.\n\nThe CLI will download the component’s code and integrate it into your project’s directory (usually under your components folder). By default, AI Elements components are added to the `@\u002Fcomponents\u002Fai-elements\u002F` directory (or whatever folder you’ve configured in your shadcn components settings).\n\nAfter running the command, you should see a confirmation in your terminal that the files were added. You can then proceed to use the component in your code.\n\n## Usage\n\nOnce an AI Elements component is installed, you can import it and use it in your application like any other React component. The components are added as part of your codebase (not hidden in a library), so the usage feels very natural.\n\n## Example\n\nAfter installing AI Elements components, you can use them in your application like any other React component. For example:\n\n```tsx title=\"conversation.tsx\"\n\"use client\";\n\nimport {\n  Message,\n  MessageContent,\n  MessageResponse,\n} from \"@\u002Fcomponents\u002Fai-elements\u002Fmessage\";\nimport { useChat } from \"@ai-sdk\u002Freact\";\n\nconst Example = () => {\n  const { messages } = useChat();\n\n  return (\n    \u003C>\n      {messages.map(({ role, parts }, index) => (\n        \u003CMessage from={role} key={index}>\n          \u003CMessageContent>\n            {parts.map((part, i) => {\n              switch (part.type) {\n                case \"text\":\n                  return (\n                    \u003CMessageResponse key={`${role}-${i}`}>\n                      {part.text}\n                    \u003C\u002FMessageResponse>\n                  );\n              }\n            })}\n          \u003C\u002FMessageContent>\n        \u003C\u002FMessage>\n      ))}\n    \u003C\u002F>\n  );\n};\n\nexport default Example;\n```\n\nIn the example above, we import the `Message` component from our AI Elements directory and include it in our JSX. Then, we compose the component with the `MessageContent` and `MessageResponse` subcomponents. You can style or configure the component just as you would if you wrote it yourself – since the code lives in your project, you can even open the component file to see how it works or make custom modifications.\n\n## Extensibility\n\nAll AI Elements components take as many primitive attributes as possible. For example, the `Message` component extends `HTMLAttributes\u003CHTMLDivElement>`, so you can pass any props that a `div` supports. This makes it easy to extend the component with your own styles or functionality.\n\n## Customization\n\nAfter installation, no additional setup is needed. The component’s styles (Tailwind CSS classes) and scripts are already integrated. You can start interacting with the component in your app immediately.\n\nFor example, if you'd like to remove the rounding on `Message`, you can go to `components\u002Fai-elements\u002Fmessage.tsx` and remove `rounded-lg` as follows:\n\n```tsx title=\"components\u002Fai-elements\u002Fmessage.tsx\" highlight=\"8\"\nexport const MessageContent = ({\n  children,\n  className,\n  ...props\n}: MessageContentProps) => (\n  \u003Cdiv\n    className={cn(\n      \"flex flex-col gap-2 text-sm text-foreground\",\n      \"group-[.is-user]:bg-primary group-[.is-user]:text-primary-foreground group-[.is-user]:px-4 group-[.is-user]:py-3\",\n      className\n    )}\n    {...props}\n  >\n    \u003Cdiv className=\"is-user:dark\">{children}\u003C\u002Fdiv>\n  \u003C\u002Fdiv>\n);\n```\n\n## Troubleshooting\n\n### Why are my components not styled?\n\nMake sure your project is configured correctly for shadcn\u002Fui in Tailwind 4 - this means having a `globals.css` file that imports Tailwind and includes the shadcn\u002Fui base styles.\n\n### I ran the AI Elements CLI but nothing was added to my project\n\nDouble-check that:\n\n- Your current working directory is the root of your project (where `package.json` lives).\n- Your components.json file (if using shadcn-style config) is set up correctly.\n- You’re using the latest version of the AI Elements CLI:\n\n```bash title=\"Terminal\"\nnpx ai-elements@latest\n```\n\nIf all else fails, feel free to open an [issue on GitHub](https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai-elements\u002Fissues).\n\n### Theme switching doesn’t work — my app stays in light mode\n\nEnsure your app is using the same data-theme system that shadcn\u002Fui and AI Elements expect. The default implementation toggles a data-theme attribute on the `\u003Chtml>` element. Make sure your tailwind.config.js is using class or data- selectors accordingly.\n\n### The component imports fail with “module not found”\n\nCheck the file exists. If it does, make sure your `tsconfig.json` has a proper paths alias for `@\u002F` i.e.\n\n```json title=\"tsconfig.json\"\n{\n  \"compilerOptions\": {\n    \"baseUrl\": \".\",\n    \"paths\": {\n      \"@\u002F*\": [\".\u002F*\"]\n    }\n  }\n}\n```\n\n### My AI coding assistant can't access AI Elements components\n\n1. Verify your config file syntax is valid JSON.\n2. Check that the file path is correct for your AI tool.\n3. Restart your coding assistant after making changes.\n4. Ensure you have a stable internet connection.\n\n### Still stuck?\n\nIf none of these answers help, open an [issue on GitHub](https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai-elements\u002Fissues) and someone will be happy to assist.\n\n## Available Components\n\nSee the `references\u002F` folder for detailed documentation on each component.\n",{"data":38,"body":39},{"name":4,"description":6},{"type":40,"children":41},"root",[42,50,73,78,133,140,145,233,239,244,257,262,268,273,279,284,1107,1133,1139,1167,1173,1178,1206,1511,1517,1524,1537,1543,1548,1574,1597,1610,1616,1629,1635,1656,1827,1833,1857,1863,1875,1881,1894],{"type":43,"tag":44,"props":45,"children":46},"element","h1",{"id":4},[47],{"type":48,"value":49},"text","AI Elements",{"type":43,"tag":51,"props":52,"children":53},"p",{},[54,62,64,71],{"type":43,"tag":55,"props":56,"children":60},"a",{"href":57,"rel":58},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fai-elements",[59],"nofollow",[61],{"type":48,"value":49},{"type":48,"value":63}," is a component library and custom registry built on top of ",{"type":43,"tag":55,"props":65,"children":68},{"href":66,"rel":67},"https:\u002F\u002Fui.shadcn.com\u002F",[59],[69],{"type":48,"value":70},"shadcn\u002Fui",{"type":48,"value":72}," to help you build AI-native applications faster. It provides pre-built components like conversations, messages and more.",{"type":43,"tag":51,"props":74,"children":75},{},[76],{"type":48,"value":77},"Installing AI Elements is straightforward and can be done in a couple of ways. You can use the dedicated CLI command for the fastest setup, or integrate via the standard shadcn\u002Fui CLI if you've already adopted shadcn's workflow.",{"type":43,"tag":79,"props":80,"children":81},"blockquote",{},[82],{"type":43,"tag":51,"props":83,"children":84},{},[85,91,93,100,102,108,110,116,118,124,126,131],{"type":43,"tag":86,"props":87,"children":88},"strong",{},[89],{"type":48,"value":90},"IMPORTANT:",{"type":48,"value":92}," Run all CLI commands using the project's package runner: ",{"type":43,"tag":94,"props":95,"children":97},"code",{"className":96},[],[98],{"type":48,"value":99},"npx ai-elements@latest",{"type":48,"value":101},", ",{"type":43,"tag":94,"props":103,"children":105},{"className":104},[],[106],{"type":48,"value":107},"pnpm dlx ai-elements@latest",{"type":48,"value":109},", or ",{"type":43,"tag":94,"props":111,"children":113},{"className":112},[],[114],{"type":48,"value":115},"bunx --bun ai-elements@latest",{"type":48,"value":117}," — based on the project's ",{"type":43,"tag":94,"props":119,"children":121},{"className":120},[],[122],{"type":48,"value":123},"packageManager",{"type":48,"value":125},". Examples below use ",{"type":43,"tag":94,"props":127,"children":129},{"className":128},[],[130],{"type":48,"value":99},{"type":48,"value":132}," but substitute the correct runner for the project.",{"type":43,"tag":134,"props":135,"children":137},"h2",{"id":136},"prerequisites",[138],{"type":48,"value":139},"Prerequisites",{"type":43,"tag":51,"props":141,"children":142},{},[143],{"type":48,"value":144},"Before installing AI Elements, make sure your environment meets the following requirements:",{"type":43,"tag":146,"props":147,"children":148},"ul",{},[149,162,184,194],{"type":43,"tag":150,"props":151,"children":152},"li",{},[153,160],{"type":43,"tag":55,"props":154,"children":157},{"href":155,"rel":156},"https:\u002F\u002Fnodejs.org\u002Fen\u002Fdownload\u002F",[59],[158],{"type":48,"value":159},"Node.js",{"type":48,"value":161},", version 18 or later",{"type":43,"tag":150,"props":163,"children":164},{},[165,167,174,176,182],{"type":48,"value":166},"A ",{"type":43,"tag":55,"props":168,"children":171},{"href":169,"rel":170},"https:\u002F\u002Fnextjs.org\u002F",[59],[172],{"type":48,"value":173},"Next.js",{"type":48,"value":175}," project with the ",{"type":43,"tag":55,"props":177,"children":180},{"href":178,"rel":179},"https:\u002F\u002Fai-sdk.dev\u002F",[59],[181],{"type":48,"value":18},{"type":48,"value":183}," installed.",{"type":43,"tag":150,"props":185,"children":186},{},[187,192],{"type":43,"tag":55,"props":188,"children":190},{"href":66,"rel":189},[59],[191],{"type":48,"value":70},{"type":48,"value":193}," installed in your project. If you don't have it installed, running any install command will automatically install it for you.",{"type":43,"tag":150,"props":195,"children":196},{},[197,199,206,208,214,216,222,224,231],{"type":48,"value":198},"We also highly recommend using the ",{"type":43,"tag":55,"props":200,"children":203},{"href":201,"rel":202},"https:\u002F\u002Fvercel.com\u002Fdocs\u002Fai-gateway",[59],[204],{"type":48,"value":205},"AI Gateway",{"type":48,"value":207}," and adding ",{"type":43,"tag":94,"props":209,"children":211},{"className":210},[],[212],{"type":48,"value":213},"AI_GATEWAY_API_KEY",{"type":48,"value":215}," to your ",{"type":43,"tag":94,"props":217,"children":219},{"className":218},[],[220],{"type":48,"value":221},"env.local",{"type":48,"value":223}," so you don't have to use an API key from every provider. AI Gateway also gives $5 in usage per month so you can experiment with models. You can obtain an API key ",{"type":43,"tag":55,"props":225,"children":228},{"href":226,"rel":227},"https:\u002F\u002Fvercel.com\u002Fd?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys&title=Get%20your%20AI%20Gateway%20key",[59],[229],{"type":48,"value":230},"here",{"type":48,"value":232},".",{"type":43,"tag":134,"props":234,"children":236},{"id":235},"installing-components",[237],{"type":48,"value":238},"Installing Components",{"type":43,"tag":51,"props":240,"children":241},{},[242],{"type":48,"value":243},"You can install AI Elements components using either the AI Elements CLI or the shadcn\u002Fui CLI. Both achieve the same result: adding the selected component’s code and any needed dependencies to your project.",{"type":43,"tag":51,"props":245,"children":246},{},[247,249,255],{"type":48,"value":248},"The CLI will download the component’s code and integrate it into your project’s directory (usually under your components folder). By default, AI Elements components are added to the ",{"type":43,"tag":94,"props":250,"children":252},{"className":251},[],[253],{"type":48,"value":254},"@\u002Fcomponents\u002Fai-elements\u002F",{"type":48,"value":256}," directory (or whatever folder you’ve configured in your shadcn components settings).",{"type":43,"tag":51,"props":258,"children":259},{},[260],{"type":48,"value":261},"After running the command, you should see a confirmation in your terminal that the files were added. You can then proceed to use the component in your code.",{"type":43,"tag":134,"props":263,"children":265},{"id":264},"usage",[266],{"type":48,"value":267},"Usage",{"type":43,"tag":51,"props":269,"children":270},{},[271],{"type":48,"value":272},"Once an AI Elements component is installed, you can import it and use it in your application like any other React component. The components are added as part of your codebase (not hidden in a library), so the usage feels very natural.",{"type":43,"tag":134,"props":274,"children":276},{"id":275},"example",[277],{"type":48,"value":278},"Example",{"type":43,"tag":51,"props":280,"children":281},{},[282],{"type":48,"value":283},"After installing AI Elements components, you can use them in your application like any other React component. For example:",{"type":43,"tag":285,"props":286,"children":292},"pre",{"className":287,"code":288,"language":289,"meta":290,"style":291},"language-tsx shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\"use client\";\n\nimport {\n  Message,\n  MessageContent,\n  MessageResponse,\n} from \"@\u002Fcomponents\u002Fai-elements\u002Fmessage\";\nimport { useChat } from \"@ai-sdk\u002Freact\";\n\nconst Example = () => {\n  const { messages } = useChat();\n\n  return (\n    \u003C>\n      {messages.map(({ role, parts }, index) => (\n        \u003CMessage from={role} key={index}>\n          \u003CMessageContent>\n            {parts.map((part, i) => {\n              switch (part.type) {\n                case \"text\":\n                  return (\n                    \u003CMessageResponse key={`${role}-${i}`}>\n                      {part.text}\n                    \u003C\u002FMessageResponse>\n                  );\n              }\n            })}\n          \u003C\u002FMessageContent>\n        \u003C\u002FMessage>\n      ))}\n    \u003C\u002F>\n  );\n};\n\nexport default Example;\n","tsx","title=\"conversation.tsx\"","",[293],{"type":43,"tag":94,"props":294,"children":295},{"__ignoreMap":291},[296,323,333,348,363,376,389,421,465,473,507,549,557,571,580,652,705,724,780,817,843,856,916,942,959,972,981,998,1015,1032,1045,1054,1067,1076,1084],{"type":43,"tag":297,"props":298,"children":301},"span",{"class":299,"line":300},"line",1,[302,308,314,318],{"type":43,"tag":297,"props":303,"children":305},{"style":304},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[306],{"type":48,"value":307},"\"",{"type":43,"tag":297,"props":309,"children":311},{"style":310},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[312],{"type":48,"value":313},"use client",{"type":43,"tag":297,"props":315,"children":316},{"style":304},[317],{"type":48,"value":307},{"type":43,"tag":297,"props":319,"children":320},{"style":304},[321],{"type":48,"value":322},";\n",{"type":43,"tag":297,"props":324,"children":326},{"class":299,"line":325},2,[327],{"type":43,"tag":297,"props":328,"children":330},{"emptyLinePlaceholder":329},true,[331],{"type":48,"value":332},"\n",{"type":43,"tag":297,"props":334,"children":336},{"class":299,"line":335},3,[337,343],{"type":43,"tag":297,"props":338,"children":340},{"style":339},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[341],{"type":48,"value":342},"import",{"type":43,"tag":297,"props":344,"children":345},{"style":304},[346],{"type":48,"value":347}," {\n",{"type":43,"tag":297,"props":349,"children":351},{"class":299,"line":350},4,[352,358],{"type":43,"tag":297,"props":353,"children":355},{"style":354},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[356],{"type":48,"value":357},"  Message",{"type":43,"tag":297,"props":359,"children":360},{"style":304},[361],{"type":48,"value":362},",\n",{"type":43,"tag":297,"props":364,"children":366},{"class":299,"line":365},5,[367,372],{"type":43,"tag":297,"props":368,"children":369},{"style":354},[370],{"type":48,"value":371},"  MessageContent",{"type":43,"tag":297,"props":373,"children":374},{"style":304},[375],{"type":48,"value":362},{"type":43,"tag":297,"props":377,"children":379},{"class":299,"line":378},6,[380,385],{"type":43,"tag":297,"props":381,"children":382},{"style":354},[383],{"type":48,"value":384},"  MessageResponse",{"type":43,"tag":297,"props":386,"children":387},{"style":304},[388],{"type":48,"value":362},{"type":43,"tag":297,"props":390,"children":392},{"class":299,"line":391},7,[393,398,403,408,413,417],{"type":43,"tag":297,"props":394,"children":395},{"style":304},[396],{"type":48,"value":397},"}",{"type":43,"tag":297,"props":399,"children":400},{"style":339},[401],{"type":48,"value":402}," from",{"type":43,"tag":297,"props":404,"children":405},{"style":304},[406],{"type":48,"value":407}," \"",{"type":43,"tag":297,"props":409,"children":410},{"style":310},[411],{"type":48,"value":412},"@\u002Fcomponents\u002Fai-elements\u002Fmessage",{"type":43,"tag":297,"props":414,"children":415},{"style":304},[416],{"type":48,"value":307},{"type":43,"tag":297,"props":418,"children":419},{"style":304},[420],{"type":48,"value":322},{"type":43,"tag":297,"props":422,"children":424},{"class":299,"line":423},8,[425,429,434,439,444,448,452,457,461],{"type":43,"tag":297,"props":426,"children":427},{"style":339},[428],{"type":48,"value":342},{"type":43,"tag":297,"props":430,"children":431},{"style":304},[432],{"type":48,"value":433}," {",{"type":43,"tag":297,"props":435,"children":436},{"style":354},[437],{"type":48,"value":438}," useChat",{"type":43,"tag":297,"props":440,"children":441},{"style":304},[442],{"type":48,"value":443}," }",{"type":43,"tag":297,"props":445,"children":446},{"style":339},[447],{"type":48,"value":402},{"type":43,"tag":297,"props":449,"children":450},{"style":304},[451],{"type":48,"value":407},{"type":43,"tag":297,"props":453,"children":454},{"style":310},[455],{"type":48,"value":456},"@ai-sdk\u002Freact",{"type":43,"tag":297,"props":458,"children":459},{"style":304},[460],{"type":48,"value":307},{"type":43,"tag":297,"props":462,"children":463},{"style":304},[464],{"type":48,"value":322},{"type":43,"tag":297,"props":466,"children":468},{"class":299,"line":467},9,[469],{"type":43,"tag":297,"props":470,"children":471},{"emptyLinePlaceholder":329},[472],{"type":48,"value":332},{"type":43,"tag":297,"props":474,"children":476},{"class":299,"line":475},10,[477,483,488,493,498,503],{"type":43,"tag":297,"props":478,"children":480},{"style":479},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[481],{"type":48,"value":482},"const",{"type":43,"tag":297,"props":484,"children":485},{"style":354},[486],{"type":48,"value":487}," Example ",{"type":43,"tag":297,"props":489,"children":490},{"style":304},[491],{"type":48,"value":492},"=",{"type":43,"tag":297,"props":494,"children":495},{"style":304},[496],{"type":48,"value":497}," ()",{"type":43,"tag":297,"props":499,"children":500},{"style":479},[501],{"type":48,"value":502}," =>",{"type":43,"tag":297,"props":504,"children":505},{"style":304},[506],{"type":48,"value":347},{"type":43,"tag":297,"props":508,"children":510},{"class":299,"line":509},11,[511,516,520,525,529,534,539,545],{"type":43,"tag":297,"props":512,"children":513},{"style":479},[514],{"type":48,"value":515},"  const",{"type":43,"tag":297,"props":517,"children":518},{"style":304},[519],{"type":48,"value":433},{"type":43,"tag":297,"props":521,"children":522},{"style":354},[523],{"type":48,"value":524}," messages",{"type":43,"tag":297,"props":526,"children":527},{"style":304},[528],{"type":48,"value":443},{"type":43,"tag":297,"props":530,"children":531},{"style":304},[532],{"type":48,"value":533}," =",{"type":43,"tag":297,"props":535,"children":537},{"style":536},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[538],{"type":48,"value":438},{"type":43,"tag":297,"props":540,"children":542},{"style":541},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[543],{"type":48,"value":544},"()",{"type":43,"tag":297,"props":546,"children":547},{"style":304},[548],{"type":48,"value":322},{"type":43,"tag":297,"props":550,"children":552},{"class":299,"line":551},12,[553],{"type":43,"tag":297,"props":554,"children":555},{"emptyLinePlaceholder":329},[556],{"type":48,"value":332},{"type":43,"tag":297,"props":558,"children":560},{"class":299,"line":559},13,[561,566],{"type":43,"tag":297,"props":562,"children":563},{"style":339},[564],{"type":48,"value":565},"  return",{"type":43,"tag":297,"props":567,"children":568},{"style":541},[569],{"type":48,"value":570}," (\n",{"type":43,"tag":297,"props":572,"children":574},{"class":299,"line":573},14,[575],{"type":43,"tag":297,"props":576,"children":577},{"style":304},[578],{"type":48,"value":579},"    \u003C>\n",{"type":43,"tag":297,"props":581,"children":583},{"class":299,"line":582},15,[584,589,594,598,603,608,613,619,624,629,634,639,644,648],{"type":43,"tag":297,"props":585,"children":586},{"style":304},[587],{"type":48,"value":588},"      {",{"type":43,"tag":297,"props":590,"children":591},{"style":354},[592],{"type":48,"value":593},"messages",{"type":43,"tag":297,"props":595,"children":596},{"style":304},[597],{"type":48,"value":232},{"type":43,"tag":297,"props":599,"children":600},{"style":536},[601],{"type":48,"value":602},"map",{"type":43,"tag":297,"props":604,"children":605},{"style":354},[606],{"type":48,"value":607},"(",{"type":43,"tag":297,"props":609,"children":610},{"style":304},[611],{"type":48,"value":612},"({",{"type":43,"tag":297,"props":614,"children":616},{"style":615},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[617],{"type":48,"value":618}," role",{"type":43,"tag":297,"props":620,"children":621},{"style":304},[622],{"type":48,"value":623},",",{"type":43,"tag":297,"props":625,"children":626},{"style":615},[627],{"type":48,"value":628}," parts",{"type":43,"tag":297,"props":630,"children":631},{"style":304},[632],{"type":48,"value":633}," },",{"type":43,"tag":297,"props":635,"children":636},{"style":615},[637],{"type":48,"value":638}," index",{"type":43,"tag":297,"props":640,"children":641},{"style":304},[642],{"type":48,"value":643},")",{"type":43,"tag":297,"props":645,"children":646},{"style":479},[647],{"type":48,"value":502},{"type":43,"tag":297,"props":649,"children":650},{"style":354},[651],{"type":48,"value":570},{"type":43,"tag":297,"props":653,"children":655},{"class":299,"line":654},16,[656,661,667,671,676,681,686,691,695,700],{"type":43,"tag":297,"props":657,"children":658},{"style":304},[659],{"type":48,"value":660},"        \u003C",{"type":43,"tag":297,"props":662,"children":664},{"style":663},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[665],{"type":48,"value":666},"Message",{"type":43,"tag":297,"props":668,"children":669},{"style":479},[670],{"type":48,"value":402},{"type":43,"tag":297,"props":672,"children":673},{"style":304},[674],{"type":48,"value":675},"={",{"type":43,"tag":297,"props":677,"children":678},{"style":354},[679],{"type":48,"value":680},"role",{"type":43,"tag":297,"props":682,"children":683},{"style":304},[684],{"type":48,"value":685},"} ",{"type":43,"tag":297,"props":687,"children":688},{"style":479},[689],{"type":48,"value":690},"key",{"type":43,"tag":297,"props":692,"children":693},{"style":304},[694],{"type":48,"value":675},{"type":43,"tag":297,"props":696,"children":697},{"style":354},[698],{"type":48,"value":699},"index",{"type":43,"tag":297,"props":701,"children":702},{"style":304},[703],{"type":48,"value":704},"}>\n",{"type":43,"tag":297,"props":706,"children":708},{"class":299,"line":707},17,[709,714,719],{"type":43,"tag":297,"props":710,"children":711},{"style":304},[712],{"type":48,"value":713},"          \u003C",{"type":43,"tag":297,"props":715,"children":716},{"style":663},[717],{"type":48,"value":718},"MessageContent",{"type":43,"tag":297,"props":720,"children":721},{"style":304},[722],{"type":48,"value":723},">\n",{"type":43,"tag":297,"props":725,"children":727},{"class":299,"line":726},18,[728,733,738,742,746,750,754,759,763,768,772,776],{"type":43,"tag":297,"props":729,"children":730},{"style":304},[731],{"type":48,"value":732},"            {",{"type":43,"tag":297,"props":734,"children":735},{"style":354},[736],{"type":48,"value":737},"parts",{"type":43,"tag":297,"props":739,"children":740},{"style":304},[741],{"type":48,"value":232},{"type":43,"tag":297,"props":743,"children":744},{"style":536},[745],{"type":48,"value":602},{"type":43,"tag":297,"props":747,"children":748},{"style":354},[749],{"type":48,"value":607},{"type":43,"tag":297,"props":751,"children":752},{"style":304},[753],{"type":48,"value":607},{"type":43,"tag":297,"props":755,"children":756},{"style":615},[757],{"type":48,"value":758},"part",{"type":43,"tag":297,"props":760,"children":761},{"style":304},[762],{"type":48,"value":623},{"type":43,"tag":297,"props":764,"children":765},{"style":615},[766],{"type":48,"value":767}," i",{"type":43,"tag":297,"props":769,"children":770},{"style":304},[771],{"type":48,"value":643},{"type":43,"tag":297,"props":773,"children":774},{"style":479},[775],{"type":48,"value":502},{"type":43,"tag":297,"props":777,"children":778},{"style":304},[779],{"type":48,"value":347},{"type":43,"tag":297,"props":781,"children":783},{"class":299,"line":782},19,[784,789,794,798,802,807,812],{"type":43,"tag":297,"props":785,"children":786},{"style":339},[787],{"type":48,"value":788},"              switch",{"type":43,"tag":297,"props":790,"children":791},{"style":541},[792],{"type":48,"value":793}," (",{"type":43,"tag":297,"props":795,"children":796},{"style":354},[797],{"type":48,"value":758},{"type":43,"tag":297,"props":799,"children":800},{"style":304},[801],{"type":48,"value":232},{"type":43,"tag":297,"props":803,"children":804},{"style":354},[805],{"type":48,"value":806},"type",{"type":43,"tag":297,"props":808,"children":809},{"style":541},[810],{"type":48,"value":811},") ",{"type":43,"tag":297,"props":813,"children":814},{"style":304},[815],{"type":48,"value":816},"{\n",{"type":43,"tag":297,"props":818,"children":820},{"class":299,"line":819},20,[821,826,830,834,838],{"type":43,"tag":297,"props":822,"children":823},{"style":339},[824],{"type":48,"value":825},"                case",{"type":43,"tag":297,"props":827,"children":828},{"style":304},[829],{"type":48,"value":407},{"type":43,"tag":297,"props":831,"children":832},{"style":310},[833],{"type":48,"value":48},{"type":43,"tag":297,"props":835,"children":836},{"style":304},[837],{"type":48,"value":307},{"type":43,"tag":297,"props":839,"children":840},{"style":304},[841],{"type":48,"value":842},":\n",{"type":43,"tag":297,"props":844,"children":846},{"class":299,"line":845},21,[847,852],{"type":43,"tag":297,"props":848,"children":849},{"style":339},[850],{"type":48,"value":851},"                  return",{"type":43,"tag":297,"props":853,"children":854},{"style":541},[855],{"type":48,"value":570},{"type":43,"tag":297,"props":857,"children":859},{"class":299,"line":858},22,[860,865,870,875,879,884,888,892,897,902,907,912],{"type":43,"tag":297,"props":861,"children":862},{"style":304},[863],{"type":48,"value":864},"                    \u003C",{"type":43,"tag":297,"props":866,"children":867},{"style":663},[868],{"type":48,"value":869},"MessageResponse",{"type":43,"tag":297,"props":871,"children":872},{"style":479},[873],{"type":48,"value":874}," key",{"type":43,"tag":297,"props":876,"children":877},{"style":304},[878],{"type":48,"value":675},{"type":43,"tag":297,"props":880,"children":881},{"style":304},[882],{"type":48,"value":883},"`${",{"type":43,"tag":297,"props":885,"children":886},{"style":354},[887],{"type":48,"value":680},{"type":43,"tag":297,"props":889,"children":890},{"style":304},[891],{"type":48,"value":397},{"type":43,"tag":297,"props":893,"children":894},{"style":310},[895],{"type":48,"value":896},"-",{"type":43,"tag":297,"props":898,"children":899},{"style":304},[900],{"type":48,"value":901},"${",{"type":43,"tag":297,"props":903,"children":904},{"style":354},[905],{"type":48,"value":906},"i",{"type":43,"tag":297,"props":908,"children":909},{"style":304},[910],{"type":48,"value":911},"}`",{"type":43,"tag":297,"props":913,"children":914},{"style":304},[915],{"type":48,"value":704},{"type":43,"tag":297,"props":917,"children":919},{"class":299,"line":918},23,[920,925,929,933,937],{"type":43,"tag":297,"props":921,"children":922},{"style":304},[923],{"type":48,"value":924},"                      {",{"type":43,"tag":297,"props":926,"children":927},{"style":354},[928],{"type":48,"value":758},{"type":43,"tag":297,"props":930,"children":931},{"style":304},[932],{"type":48,"value":232},{"type":43,"tag":297,"props":934,"children":935},{"style":354},[936],{"type":48,"value":48},{"type":43,"tag":297,"props":938,"children":939},{"style":304},[940],{"type":48,"value":941},"}\n",{"type":43,"tag":297,"props":943,"children":945},{"class":299,"line":944},24,[946,951,955],{"type":43,"tag":297,"props":947,"children":948},{"style":304},[949],{"type":48,"value":950},"                    \u003C\u002F",{"type":43,"tag":297,"props":952,"children":953},{"style":663},[954],{"type":48,"value":869},{"type":43,"tag":297,"props":956,"children":957},{"style":304},[958],{"type":48,"value":723},{"type":43,"tag":297,"props":960,"children":962},{"class":299,"line":961},25,[963,968],{"type":43,"tag":297,"props":964,"children":965},{"style":541},[966],{"type":48,"value":967},"                  )",{"type":43,"tag":297,"props":969,"children":970},{"style":304},[971],{"type":48,"value":322},{"type":43,"tag":297,"props":973,"children":975},{"class":299,"line":974},26,[976],{"type":43,"tag":297,"props":977,"children":978},{"style":304},[979],{"type":48,"value":980},"              }\n",{"type":43,"tag":297,"props":982,"children":984},{"class":299,"line":983},27,[985,990,994],{"type":43,"tag":297,"props":986,"children":987},{"style":304},[988],{"type":48,"value":989},"            }",{"type":43,"tag":297,"props":991,"children":992},{"style":354},[993],{"type":48,"value":643},{"type":43,"tag":297,"props":995,"children":996},{"style":304},[997],{"type":48,"value":941},{"type":43,"tag":297,"props":999,"children":1001},{"class":299,"line":1000},28,[1002,1007,1011],{"type":43,"tag":297,"props":1003,"children":1004},{"style":304},[1005],{"type":48,"value":1006},"          \u003C\u002F",{"type":43,"tag":297,"props":1008,"children":1009},{"style":663},[1010],{"type":48,"value":718},{"type":43,"tag":297,"props":1012,"children":1013},{"style":304},[1014],{"type":48,"value":723},{"type":43,"tag":297,"props":1016,"children":1018},{"class":299,"line":1017},29,[1019,1024,1028],{"type":43,"tag":297,"props":1020,"children":1021},{"style":304},[1022],{"type":48,"value":1023},"        \u003C\u002F",{"type":43,"tag":297,"props":1025,"children":1026},{"style":663},[1027],{"type":48,"value":666},{"type":43,"tag":297,"props":1029,"children":1030},{"style":304},[1031],{"type":48,"value":723},{"type":43,"tag":297,"props":1033,"children":1035},{"class":299,"line":1034},30,[1036,1041],{"type":43,"tag":297,"props":1037,"children":1038},{"style":354},[1039],{"type":48,"value":1040},"      ))",{"type":43,"tag":297,"props":1042,"children":1043},{"style":304},[1044],{"type":48,"value":941},{"type":43,"tag":297,"props":1046,"children":1048},{"class":299,"line":1047},31,[1049],{"type":43,"tag":297,"props":1050,"children":1051},{"style":304},[1052],{"type":48,"value":1053},"    \u003C\u002F>\n",{"type":43,"tag":297,"props":1055,"children":1057},{"class":299,"line":1056},32,[1058,1063],{"type":43,"tag":297,"props":1059,"children":1060},{"style":541},[1061],{"type":48,"value":1062},"  )",{"type":43,"tag":297,"props":1064,"children":1065},{"style":304},[1066],{"type":48,"value":322},{"type":43,"tag":297,"props":1068,"children":1070},{"class":299,"line":1069},33,[1071],{"type":43,"tag":297,"props":1072,"children":1073},{"style":304},[1074],{"type":48,"value":1075},"};\n",{"type":43,"tag":297,"props":1077,"children":1079},{"class":299,"line":1078},34,[1080],{"type":43,"tag":297,"props":1081,"children":1082},{"emptyLinePlaceholder":329},[1083],{"type":48,"value":332},{"type":43,"tag":297,"props":1085,"children":1087},{"class":299,"line":1086},35,[1088,1093,1098,1103],{"type":43,"tag":297,"props":1089,"children":1090},{"style":339},[1091],{"type":48,"value":1092},"export",{"type":43,"tag":297,"props":1094,"children":1095},{"style":339},[1096],{"type":48,"value":1097}," default",{"type":43,"tag":297,"props":1099,"children":1100},{"style":354},[1101],{"type":48,"value":1102}," Example",{"type":43,"tag":297,"props":1104,"children":1105},{"style":304},[1106],{"type":48,"value":322},{"type":43,"tag":51,"props":1108,"children":1109},{},[1110,1112,1117,1119,1124,1126,1131],{"type":48,"value":1111},"In the example above, we import the ",{"type":43,"tag":94,"props":1113,"children":1115},{"className":1114},[],[1116],{"type":48,"value":666},{"type":48,"value":1118}," component from our AI Elements directory and include it in our JSX. Then, we compose the component with the ",{"type":43,"tag":94,"props":1120,"children":1122},{"className":1121},[],[1123],{"type":48,"value":718},{"type":48,"value":1125}," and ",{"type":43,"tag":94,"props":1127,"children":1129},{"className":1128},[],[1130],{"type":48,"value":869},{"type":48,"value":1132}," subcomponents. You can style or configure the component just as you would if you wrote it yourself – since the code lives in your project, you can even open the component file to see how it works or make custom modifications.",{"type":43,"tag":134,"props":1134,"children":1136},{"id":1135},"extensibility",[1137],{"type":48,"value":1138},"Extensibility",{"type":43,"tag":51,"props":1140,"children":1141},{},[1142,1144,1149,1151,1157,1159,1165],{"type":48,"value":1143},"All AI Elements components take as many primitive attributes as possible. For example, the ",{"type":43,"tag":94,"props":1145,"children":1147},{"className":1146},[],[1148],{"type":48,"value":666},{"type":48,"value":1150}," component extends ",{"type":43,"tag":94,"props":1152,"children":1154},{"className":1153},[],[1155],{"type":48,"value":1156},"HTMLAttributes\u003CHTMLDivElement>",{"type":48,"value":1158},", so you can pass any props that a ",{"type":43,"tag":94,"props":1160,"children":1162},{"className":1161},[],[1163],{"type":48,"value":1164},"div",{"type":48,"value":1166}," supports. This makes it easy to extend the component with your own styles or functionality.",{"type":43,"tag":134,"props":1168,"children":1170},{"id":1169},"customization",[1171],{"type":48,"value":1172},"Customization",{"type":43,"tag":51,"props":1174,"children":1175},{},[1176],{"type":48,"value":1177},"After installation, no additional setup is needed. The component’s styles (Tailwind CSS classes) and scripts are already integrated. You can start interacting with the component in your app immediately.",{"type":43,"tag":51,"props":1179,"children":1180},{},[1181,1183,1188,1190,1196,1198,1204],{"type":48,"value":1182},"For example, if you'd like to remove the rounding on ",{"type":43,"tag":94,"props":1184,"children":1186},{"className":1185},[],[1187],{"type":48,"value":666},{"type":48,"value":1189},", you can go to ",{"type":43,"tag":94,"props":1191,"children":1193},{"className":1192},[],[1194],{"type":48,"value":1195},"components\u002Fai-elements\u002Fmessage.tsx",{"type":48,"value":1197}," and remove ",{"type":43,"tag":94,"props":1199,"children":1201},{"className":1200},[],[1202],{"type":48,"value":1203},"rounded-lg",{"type":48,"value":1205}," as follows:",{"type":43,"tag":285,"props":1207,"children":1210},{"className":287,"code":1208,"language":289,"meta":1209,"style":291},"export const MessageContent = ({\n  children,\n  className,\n  ...props\n}: MessageContentProps) => (\n  \u003Cdiv\n    className={cn(\n      \"flex flex-col gap-2 text-sm text-foreground\",\n      \"group-[.is-user]:bg-primary group-[.is-user]:text-primary-foreground group-[.is-user]:px-4 group-[.is-user]:py-3\",\n      className\n    )}\n    {...props}\n  >\n    \u003Cdiv className=\"is-user:dark\">{children}\u003C\u002Fdiv>\n  \u003C\u002Fdiv>\n);\n","title=\"components\u002Fai-elements\u002Fmessage.tsx\" highlight=\"8\"",[1211],{"type":43,"tag":94,"props":1212,"children":1213},{"__ignoreMap":291},[1214,1243,1255,1267,1280,1306,1319,1341,1362,1382,1390,1402,1419,1427,1484,1500],{"type":43,"tag":297,"props":1215,"children":1216},{"class":299,"line":300},[1217,1221,1226,1231,1235,1239],{"type":43,"tag":297,"props":1218,"children":1219},{"style":339},[1220],{"type":48,"value":1092},{"type":43,"tag":297,"props":1222,"children":1223},{"style":479},[1224],{"type":48,"value":1225}," const",{"type":43,"tag":297,"props":1227,"children":1228},{"style":354},[1229],{"type":48,"value":1230}," MessageContent ",{"type":43,"tag":297,"props":1232,"children":1233},{"style":304},[1234],{"type":48,"value":492},{"type":43,"tag":297,"props":1236,"children":1237},{"style":354},[1238],{"type":48,"value":793},{"type":43,"tag":297,"props":1240,"children":1241},{"style":304},[1242],{"type":48,"value":816},{"type":43,"tag":297,"props":1244,"children":1245},{"class":299,"line":325},[1246,1251],{"type":43,"tag":297,"props":1247,"children":1248},{"style":354},[1249],{"type":48,"value":1250},"  children",{"type":43,"tag":297,"props":1252,"children":1253},{"style":304},[1254],{"type":48,"value":362},{"type":43,"tag":297,"props":1256,"children":1257},{"class":299,"line":335},[1258,1263],{"type":43,"tag":297,"props":1259,"children":1260},{"style":354},[1261],{"type":48,"value":1262},"  className",{"type":43,"tag":297,"props":1264,"children":1265},{"style":304},[1266],{"type":48,"value":362},{"type":43,"tag":297,"props":1268,"children":1269},{"class":299,"line":350},[1270,1275],{"type":43,"tag":297,"props":1271,"children":1272},{"style":304},[1273],{"type":48,"value":1274},"  ...",{"type":43,"tag":297,"props":1276,"children":1277},{"style":354},[1278],{"type":48,"value":1279},"props\n",{"type":43,"tag":297,"props":1281,"children":1282},{"class":299,"line":365},[1283,1288,1293,1297,1302],{"type":43,"tag":297,"props":1284,"children":1285},{"style":304},[1286],{"type":48,"value":1287},"}:",{"type":43,"tag":297,"props":1289,"children":1290},{"style":663},[1291],{"type":48,"value":1292}," MessageContentProps",{"type":43,"tag":297,"props":1294,"children":1295},{"style":354},[1296],{"type":48,"value":811},{"type":43,"tag":297,"props":1298,"children":1299},{"style":479},[1300],{"type":48,"value":1301},"=>",{"type":43,"tag":297,"props":1303,"children":1304},{"style":354},[1305],{"type":48,"value":570},{"type":43,"tag":297,"props":1307,"children":1308},{"class":299,"line":378},[1309,1314],{"type":43,"tag":297,"props":1310,"children":1311},{"style":304},[1312],{"type":48,"value":1313},"  \u003C",{"type":43,"tag":297,"props":1315,"children":1316},{"style":541},[1317],{"type":48,"value":1318},"div\n",{"type":43,"tag":297,"props":1320,"children":1321},{"class":299,"line":391},[1322,1327,1331,1336],{"type":43,"tag":297,"props":1323,"children":1324},{"style":479},[1325],{"type":48,"value":1326},"    className",{"type":43,"tag":297,"props":1328,"children":1329},{"style":304},[1330],{"type":48,"value":675},{"type":43,"tag":297,"props":1332,"children":1333},{"style":536},[1334],{"type":48,"value":1335},"cn",{"type":43,"tag":297,"props":1337,"children":1338},{"style":354},[1339],{"type":48,"value":1340},"(\n",{"type":43,"tag":297,"props":1342,"children":1343},{"class":299,"line":423},[1344,1349,1354,1358],{"type":43,"tag":297,"props":1345,"children":1346},{"style":304},[1347],{"type":48,"value":1348},"      \"",{"type":43,"tag":297,"props":1350,"children":1351},{"style":310},[1352],{"type":48,"value":1353},"flex flex-col gap-2 text-sm text-foreground",{"type":43,"tag":297,"props":1355,"children":1356},{"style":304},[1357],{"type":48,"value":307},{"type":43,"tag":297,"props":1359,"children":1360},{"style":304},[1361],{"type":48,"value":362},{"type":43,"tag":297,"props":1363,"children":1364},{"class":299,"line":467},[1365,1369,1374,1378],{"type":43,"tag":297,"props":1366,"children":1367},{"style":304},[1368],{"type":48,"value":1348},{"type":43,"tag":297,"props":1370,"children":1371},{"style":310},[1372],{"type":48,"value":1373},"group-[.is-user]:bg-primary group-[.is-user]:text-primary-foreground group-[.is-user]:px-4 group-[.is-user]:py-3",{"type":43,"tag":297,"props":1375,"children":1376},{"style":304},[1377],{"type":48,"value":307},{"type":43,"tag":297,"props":1379,"children":1380},{"style":304},[1381],{"type":48,"value":362},{"type":43,"tag":297,"props":1383,"children":1384},{"class":299,"line":475},[1385],{"type":43,"tag":297,"props":1386,"children":1387},{"style":354},[1388],{"type":48,"value":1389},"      className\n",{"type":43,"tag":297,"props":1391,"children":1392},{"class":299,"line":509},[1393,1398],{"type":43,"tag":297,"props":1394,"children":1395},{"style":354},[1396],{"type":48,"value":1397},"    )",{"type":43,"tag":297,"props":1399,"children":1400},{"style":304},[1401],{"type":48,"value":941},{"type":43,"tag":297,"props":1403,"children":1404},{"class":299,"line":551},[1405,1410,1415],{"type":43,"tag":297,"props":1406,"children":1407},{"style":304},[1408],{"type":48,"value":1409},"    {...",{"type":43,"tag":297,"props":1411,"children":1412},{"style":354},[1413],{"type":48,"value":1414},"props",{"type":43,"tag":297,"props":1416,"children":1417},{"style":304},[1418],{"type":48,"value":941},{"type":43,"tag":297,"props":1420,"children":1421},{"class":299,"line":559},[1422],{"type":43,"tag":297,"props":1423,"children":1424},{"style":304},[1425],{"type":48,"value":1426},"  >\n",{"type":43,"tag":297,"props":1428,"children":1429},{"class":299,"line":573},[1430,1435,1439,1444,1448,1452,1457,1461,1466,1471,1476,1480],{"type":43,"tag":297,"props":1431,"children":1432},{"style":304},[1433],{"type":48,"value":1434},"    \u003C",{"type":43,"tag":297,"props":1436,"children":1437},{"style":541},[1438],{"type":48,"value":1164},{"type":43,"tag":297,"props":1440,"children":1441},{"style":479},[1442],{"type":48,"value":1443}," className",{"type":43,"tag":297,"props":1445,"children":1446},{"style":304},[1447],{"type":48,"value":492},{"type":43,"tag":297,"props":1449,"children":1450},{"style":304},[1451],{"type":48,"value":307},{"type":43,"tag":297,"props":1453,"children":1454},{"style":310},[1455],{"type":48,"value":1456},"is-user:dark",{"type":43,"tag":297,"props":1458,"children":1459},{"style":304},[1460],{"type":48,"value":307},{"type":43,"tag":297,"props":1462,"children":1463},{"style":304},[1464],{"type":48,"value":1465},">{",{"type":43,"tag":297,"props":1467,"children":1468},{"style":354},[1469],{"type":48,"value":1470},"children",{"type":43,"tag":297,"props":1472,"children":1473},{"style":304},[1474],{"type":48,"value":1475},"}\u003C\u002F",{"type":43,"tag":297,"props":1477,"children":1478},{"style":541},[1479],{"type":48,"value":1164},{"type":43,"tag":297,"props":1481,"children":1482},{"style":304},[1483],{"type":48,"value":723},{"type":43,"tag":297,"props":1485,"children":1486},{"class":299,"line":582},[1487,1492,1496],{"type":43,"tag":297,"props":1488,"children":1489},{"style":304},[1490],{"type":48,"value":1491},"  \u003C\u002F",{"type":43,"tag":297,"props":1493,"children":1494},{"style":541},[1495],{"type":48,"value":1164},{"type":43,"tag":297,"props":1497,"children":1498},{"style":304},[1499],{"type":48,"value":723},{"type":43,"tag":297,"props":1501,"children":1502},{"class":299,"line":654},[1503,1507],{"type":43,"tag":297,"props":1504,"children":1505},{"style":354},[1506],{"type":48,"value":643},{"type":43,"tag":297,"props":1508,"children":1509},{"style":304},[1510],{"type":48,"value":322},{"type":43,"tag":134,"props":1512,"children":1514},{"id":1513},"troubleshooting",[1515],{"type":48,"value":1516},"Troubleshooting",{"type":43,"tag":1518,"props":1519,"children":1521},"h3",{"id":1520},"why-are-my-components-not-styled",[1522],{"type":48,"value":1523},"Why are my components not styled?",{"type":43,"tag":51,"props":1525,"children":1526},{},[1527,1529,1535],{"type":48,"value":1528},"Make sure your project is configured correctly for shadcn\u002Fui in Tailwind 4 - this means having a ",{"type":43,"tag":94,"props":1530,"children":1532},{"className":1531},[],[1533],{"type":48,"value":1534},"globals.css",{"type":48,"value":1536}," file that imports Tailwind and includes the shadcn\u002Fui base styles.",{"type":43,"tag":1518,"props":1538,"children":1540},{"id":1539},"i-ran-the-ai-elements-cli-but-nothing-was-added-to-my-project",[1541],{"type":48,"value":1542},"I ran the AI Elements CLI but nothing was added to my project",{"type":43,"tag":51,"props":1544,"children":1545},{},[1546],{"type":48,"value":1547},"Double-check that:",{"type":43,"tag":146,"props":1549,"children":1550},{},[1551,1564,1569],{"type":43,"tag":150,"props":1552,"children":1553},{},[1554,1556,1562],{"type":48,"value":1555},"Your current working directory is the root of your project (where ",{"type":43,"tag":94,"props":1557,"children":1559},{"className":1558},[],[1560],{"type":48,"value":1561},"package.json",{"type":48,"value":1563}," lives).",{"type":43,"tag":150,"props":1565,"children":1566},{},[1567],{"type":48,"value":1568},"Your components.json file (if using shadcn-style config) is set up correctly.",{"type":43,"tag":150,"props":1570,"children":1571},{},[1572],{"type":48,"value":1573},"You’re using the latest version of the AI Elements CLI:",{"type":43,"tag":285,"props":1575,"children":1580},{"className":1576,"code":1577,"language":1578,"meta":1579,"style":291},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npx ai-elements@latest\n","bash","title=\"Terminal\"",[1581],{"type":43,"tag":94,"props":1582,"children":1583},{"__ignoreMap":291},[1584],{"type":43,"tag":297,"props":1585,"children":1586},{"class":299,"line":300},[1587,1592],{"type":43,"tag":297,"props":1588,"children":1589},{"style":663},[1590],{"type":48,"value":1591},"npx",{"type":43,"tag":297,"props":1593,"children":1594},{"style":310},[1595],{"type":48,"value":1596}," ai-elements@latest\n",{"type":43,"tag":51,"props":1598,"children":1599},{},[1600,1602,1609],{"type":48,"value":1601},"If all else fails, feel free to open an ",{"type":43,"tag":55,"props":1603,"children":1606},{"href":1604,"rel":1605},"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai-elements\u002Fissues",[59],[1607],{"type":48,"value":1608},"issue on GitHub",{"type":48,"value":232},{"type":43,"tag":1518,"props":1611,"children":1613},{"id":1612},"theme-switching-doesnt-work-my-app-stays-in-light-mode",[1614],{"type":48,"value":1615},"Theme switching doesn’t work — my app stays in light mode",{"type":43,"tag":51,"props":1617,"children":1618},{},[1619,1621,1627],{"type":48,"value":1620},"Ensure your app is using the same data-theme system that shadcn\u002Fui and AI Elements expect. The default implementation toggles a data-theme attribute on the ",{"type":43,"tag":94,"props":1622,"children":1624},{"className":1623},[],[1625],{"type":48,"value":1626},"\u003Chtml>",{"type":48,"value":1628}," element. Make sure your tailwind.config.js is using class or data- selectors accordingly.",{"type":43,"tag":1518,"props":1630,"children":1632},{"id":1631},"the-component-imports-fail-with-module-not-found",[1633],{"type":48,"value":1634},"The component imports fail with “module not found”",{"type":43,"tag":51,"props":1636,"children":1637},{},[1638,1640,1646,1648,1654],{"type":48,"value":1639},"Check the file exists. If it does, make sure your ",{"type":43,"tag":94,"props":1641,"children":1643},{"className":1642},[],[1644],{"type":48,"value":1645},"tsconfig.json",{"type":48,"value":1647}," has a proper paths alias for ",{"type":43,"tag":94,"props":1649,"children":1651},{"className":1650},[],[1652],{"type":48,"value":1653},"@\u002F",{"type":48,"value":1655}," i.e.",{"type":43,"tag":285,"props":1657,"children":1662},{"className":1658,"code":1659,"language":1660,"meta":1661,"style":291},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"compilerOptions\": {\n    \"baseUrl\": \".\",\n    \"paths\": {\n      \"@\u002F*\": [\".\u002F*\"]\n    }\n  }\n}\n","json","title=\"tsconfig.json\"",[1663],{"type":43,"tag":94,"props":1664,"children":1665},{"__ignoreMap":291},[1666,1673,1699,1736,1760,1804,1812,1820],{"type":43,"tag":297,"props":1667,"children":1668},{"class":299,"line":300},[1669],{"type":43,"tag":297,"props":1670,"children":1671},{"style":304},[1672],{"type":48,"value":816},{"type":43,"tag":297,"props":1674,"children":1675},{"class":299,"line":325},[1676,1681,1686,1690,1695],{"type":43,"tag":297,"props":1677,"children":1678},{"style":304},[1679],{"type":48,"value":1680},"  \"",{"type":43,"tag":297,"props":1682,"children":1683},{"style":479},[1684],{"type":48,"value":1685},"compilerOptions",{"type":43,"tag":297,"props":1687,"children":1688},{"style":304},[1689],{"type":48,"value":307},{"type":43,"tag":297,"props":1691,"children":1692},{"style":304},[1693],{"type":48,"value":1694},":",{"type":43,"tag":297,"props":1696,"children":1697},{"style":304},[1698],{"type":48,"value":347},{"type":43,"tag":297,"props":1700,"children":1701},{"class":299,"line":335},[1702,1707,1712,1716,1720,1724,1728,1732],{"type":43,"tag":297,"props":1703,"children":1704},{"style":304},[1705],{"type":48,"value":1706},"    \"",{"type":43,"tag":297,"props":1708,"children":1709},{"style":663},[1710],{"type":48,"value":1711},"baseUrl",{"type":43,"tag":297,"props":1713,"children":1714},{"style":304},[1715],{"type":48,"value":307},{"type":43,"tag":297,"props":1717,"children":1718},{"style":304},[1719],{"type":48,"value":1694},{"type":43,"tag":297,"props":1721,"children":1722},{"style":304},[1723],{"type":48,"value":407},{"type":43,"tag":297,"props":1725,"children":1726},{"style":310},[1727],{"type":48,"value":232},{"type":43,"tag":297,"props":1729,"children":1730},{"style":304},[1731],{"type":48,"value":307},{"type":43,"tag":297,"props":1733,"children":1734},{"style":304},[1735],{"type":48,"value":362},{"type":43,"tag":297,"props":1737,"children":1738},{"class":299,"line":350},[1739,1743,1748,1752,1756],{"type":43,"tag":297,"props":1740,"children":1741},{"style":304},[1742],{"type":48,"value":1706},{"type":43,"tag":297,"props":1744,"children":1745},{"style":663},[1746],{"type":48,"value":1747},"paths",{"type":43,"tag":297,"props":1749,"children":1750},{"style":304},[1751],{"type":48,"value":307},{"type":43,"tag":297,"props":1753,"children":1754},{"style":304},[1755],{"type":48,"value":1694},{"type":43,"tag":297,"props":1757,"children":1758},{"style":304},[1759],{"type":48,"value":347},{"type":43,"tag":297,"props":1761,"children":1762},{"class":299,"line":365},[1763,1767,1773,1777,1781,1786,1790,1795,1799],{"type":43,"tag":297,"props":1764,"children":1765},{"style":304},[1766],{"type":48,"value":1348},{"type":43,"tag":297,"props":1768,"children":1770},{"style":1769},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1771],{"type":48,"value":1772},"@\u002F*",{"type":43,"tag":297,"props":1774,"children":1775},{"style":304},[1776],{"type":48,"value":307},{"type":43,"tag":297,"props":1778,"children":1779},{"style":304},[1780],{"type":48,"value":1694},{"type":43,"tag":297,"props":1782,"children":1783},{"style":304},[1784],{"type":48,"value":1785}," [",{"type":43,"tag":297,"props":1787,"children":1788},{"style":304},[1789],{"type":48,"value":307},{"type":43,"tag":297,"props":1791,"children":1792},{"style":310},[1793],{"type":48,"value":1794},".\u002F*",{"type":43,"tag":297,"props":1796,"children":1797},{"style":304},[1798],{"type":48,"value":307},{"type":43,"tag":297,"props":1800,"children":1801},{"style":304},[1802],{"type":48,"value":1803},"]\n",{"type":43,"tag":297,"props":1805,"children":1806},{"class":299,"line":378},[1807],{"type":43,"tag":297,"props":1808,"children":1809},{"style":304},[1810],{"type":48,"value":1811},"    }\n",{"type":43,"tag":297,"props":1813,"children":1814},{"class":299,"line":391},[1815],{"type":43,"tag":297,"props":1816,"children":1817},{"style":304},[1818],{"type":48,"value":1819},"  }\n",{"type":43,"tag":297,"props":1821,"children":1822},{"class":299,"line":423},[1823],{"type":43,"tag":297,"props":1824,"children":1825},{"style":304},[1826],{"type":48,"value":941},{"type":43,"tag":1518,"props":1828,"children":1830},{"id":1829},"my-ai-coding-assistant-cant-access-ai-elements-components",[1831],{"type":48,"value":1832},"My AI coding assistant can't access AI Elements components",{"type":43,"tag":1834,"props":1835,"children":1836},"ol",{},[1837,1842,1847,1852],{"type":43,"tag":150,"props":1838,"children":1839},{},[1840],{"type":48,"value":1841},"Verify your config file syntax is valid JSON.",{"type":43,"tag":150,"props":1843,"children":1844},{},[1845],{"type":48,"value":1846},"Check that the file path is correct for your AI tool.",{"type":43,"tag":150,"props":1848,"children":1849},{},[1850],{"type":48,"value":1851},"Restart your coding assistant after making changes.",{"type":43,"tag":150,"props":1853,"children":1854},{},[1855],{"type":48,"value":1856},"Ensure you have a stable internet connection.",{"type":43,"tag":1518,"props":1858,"children":1860},{"id":1859},"still-stuck",[1861],{"type":48,"value":1862},"Still stuck?",{"type":43,"tag":51,"props":1864,"children":1865},{},[1866,1868,1873],{"type":48,"value":1867},"If none of these answers help, open an ",{"type":43,"tag":55,"props":1869,"children":1871},{"href":1604,"rel":1870},[59],[1872],{"type":48,"value":1608},{"type":48,"value":1874}," and someone will be happy to assist.",{"type":43,"tag":134,"props":1876,"children":1878},{"id":1877},"available-components",[1879],{"type":48,"value":1880},"Available Components",{"type":43,"tag":51,"props":1882,"children":1883},{},[1884,1886,1892],{"type":48,"value":1885},"See the ",{"type":43,"tag":94,"props":1887,"children":1889},{"className":1888},[],[1890],{"type":48,"value":1891},"references\u002F",{"type":48,"value":1893}," folder for detailed documentation on each component.",{"type":43,"tag":1895,"props":1896,"children":1897},"style",{},[1898],{"type":48,"value":1899},"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":1901,"total":2075},[1902,1921,1935,1954,1965,1980,1994,2012,2024,2043,2055,2065],{"slug":1903,"name":1903,"fn":1904,"description":1905,"org":1906,"tags":1907,"stars":1918,"repoUrl":1919,"updatedAt":1920},"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},[1908,1911,1912,1915,1917],{"name":1909,"slug":1910,"type":13},"Caching","caching",{"name":21,"slug":22,"type":13},{"name":1913,"slug":1914,"type":13},"Migration","migration",{"name":173,"slug":1916,"type":13},"next-js",{"name":9,"slug":8,"type":13},141208,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fnext.js","2026-07-24T05:38:30.118542",{"slug":1922,"name":1922,"fn":1923,"description":1924,"org":1925,"tags":1926,"stars":1918,"repoUrl":1919,"updatedAt":1934},"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},[1927,1928,1929,1930,1933],{"name":1909,"slug":1910,"type":13},{"name":21,"slug":22,"type":13},{"name":173,"slug":1916,"type":13},{"name":1931,"slug":1932,"type":13},"Performance","performance",{"name":9,"slug":8,"type":13},"2026-07-30T05:31:10.674078",{"slug":1936,"name":1936,"fn":1937,"description":1938,"org":1939,"tags":1940,"stars":1918,"repoUrl":1919,"updatedAt":1953},"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},[1941,1944,1945,1948,1949,1950],{"name":1942,"slug":1943,"type":13},"Debugging","debugging",{"name":21,"slug":22,"type":13},{"name":1946,"slug":1947,"type":13},"Local Development","local-development",{"name":173,"slug":1916,"type":13},{"name":9,"slug":8,"type":13},{"name":1951,"slug":1952,"type":13},"Web Development","web-development","2026-05-22T06:45:28.627735",{"slug":1955,"name":1955,"fn":1956,"description":1957,"org":1958,"tags":1959,"stars":1918,"repoUrl":1919,"updatedAt":1964},"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},[1960,1961,1962,1963],{"name":21,"slug":22,"type":13},{"name":173,"slug":1916,"type":13},{"name":1931,"slug":1932,"type":13},{"name":9,"slug":8,"type":13},"2026-07-30T05:31:11.591864",{"slug":1966,"name":1966,"fn":1967,"description":1968,"org":1969,"tags":1970,"stars":1977,"repoUrl":1978,"updatedAt":1979},"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},[1971,1974,1975],{"name":1972,"slug":1973,"type":13},"CI\u002FCD","ci-cd",{"name":1931,"slug":1932,"type":13},{"name":1976,"slug":1966,"type":13},"Turborepo",30809,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fturborepo","2026-07-30T05:32:14.920116",{"slug":1981,"name":1981,"fn":1982,"description":1983,"org":1984,"tags":1985,"stars":1991,"repoUrl":1992,"updatedAt":1993},"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},[1986,1987,1990],{"name":18,"slug":19,"type":13},{"name":1988,"slug":1989,"type":13},"Testing","testing",{"name":9,"slug":8,"type":13},25670,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai","2026-04-06T18:55:51.318866",{"slug":1995,"name":1995,"fn":1996,"description":1997,"org":1998,"tags":1999,"stars":1991,"repoUrl":1992,"updatedAt":2011},"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},[2000,2003,2004,2007,2010],{"name":2001,"slug":2002,"type":13},"Agents","agents",{"name":18,"slug":19,"type":13},{"name":2005,"slug":2006,"type":13},"Harness","harness",{"name":2008,"slug":2009,"type":13},"SDK","sdk",{"name":9,"slug":8,"type":13},"2026-06-18T08:29:19.858737",{"slug":2013,"name":2013,"fn":2014,"description":2015,"org":2016,"tags":2017,"stars":1991,"repoUrl":1992,"updatedAt":2023},"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},[2018,2019,2022],{"name":18,"slug":19,"type":13},{"name":2020,"slug":2021,"type":13},"API Development","api-development",{"name":9,"slug":8,"type":13},"2026-04-06T18:55:47.45549",{"slug":2025,"name":2025,"fn":2026,"description":2027,"org":2028,"tags":2029,"stars":1991,"repoUrl":1992,"updatedAt":2042},"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},[2030,2033,2036,2039],{"name":2031,"slug":2032,"type":13},"ADR","adr",{"name":2034,"slug":2035,"type":13},"Architecture","architecture",{"name":2037,"slug":2038,"type":13},"Documentation","documentation",{"name":2040,"slug":2041,"type":13},"Engineering","engineering","2026-04-06T18:55:50.043694",{"slug":19,"name":19,"fn":2044,"description":2045,"org":2046,"tags":2047,"stars":1991,"repoUrl":1992,"updatedAt":2054},"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},[2048,2049,2050,2053],{"name":2001,"slug":2002,"type":13},{"name":18,"slug":19,"type":13},{"name":2051,"slug":2052,"type":13},"LLM","llm",{"name":9,"slug":8,"type":13},"2026-04-06T18:55:48.739463",{"slug":2056,"name":2056,"fn":2057,"description":2058,"org":2059,"tags":2060,"stars":1991,"repoUrl":1992,"updatedAt":2064},"capture-api-response-test-fixture","capture API response test fixtures","Capture API response test fixture.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2061,2062,2063],{"name":2020,"slug":2021,"type":13},{"name":1988,"slug":1989,"type":13},{"name":9,"slug":8,"type":13},"2026-04-06T18:55:56.374433",{"slug":2066,"name":2066,"fn":2067,"description":2068,"org":2069,"tags":2070,"stars":1991,"repoUrl":1992,"updatedAt":2074},"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},[2071,2072,2073],{"name":18,"slug":19,"type":13},{"name":1988,"slug":1989,"type":13},{"name":9,"slug":8,"type":13},"2026-04-06T18:55:55.088956",68,{"items":2077,"total":300},[2078],{"slug":4,"name":4,"fn":5,"description":6,"org":2079,"tags":2080,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2081,2082,2083,2084],{"name":18,"slug":19,"type":13},{"name":21,"slug":22,"type":13},{"name":15,"slug":16,"type":13},{"name":9,"slug":8,"type":13}]