[{"data":1,"prerenderedAt":358},["ShallowReactive",2],{"mobile-docs-navigation":3,"command-menu-docs":50,"navigation":69,"mobile-docs-page-meta":85,"docs-pages-category":98,"\u002Fdocs\u002Fcomponents\u002Fchat-messages":108,"surround-\u002Fdocs\u002Fcomponents\u002Fchat-messages":355},[4],{"title":5,"path":6,"stem":7,"children":8,"page":49},"Docs","\u002Fdocs","docs",[9,19],{"title":10,"path":11,"stem":12,"children":13},"Introduction","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started\u002F1.index",[14,15],{"title":10,"path":11,"stem":12},{"title":16,"path":17,"stem":18},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F1.getting-started\u002F2.installation",{"title":20,"path":21,"stem":22,"children":23},"Components","\u002Fdocs\u002Fcomponents","docs\u002F2.components\u002F0.index",[24,25,29,33,37,41,45],{"title":20,"path":21,"stem":22},{"title":26,"path":27,"stem":28},"Chat","\u002Fdocs\u002Fcomponents\u002Fchat","docs\u002F2.components\u002F1.chat",{"title":30,"path":31,"stem":32},"ChatMessage","\u002Fdocs\u002Fcomponents\u002Fchat-message","docs\u002F2.components\u002F2.chat-message",{"title":34,"path":35,"stem":36},"ChatMessages","\u002Fdocs\u002Fcomponents\u002Fchat-messages","docs\u002F2.components\u002F3.chat-messages",{"title":38,"path":39,"stem":40},"ChatPrompt","\u002Fdocs\u002Fcomponents\u002Fchat-prompt","docs\u002F2.components\u002F4.chat-prompt",{"title":42,"path":43,"stem":44},"ChatPromptSubmit","\u002Fdocs\u002Fcomponents\u002Fchat-prompt-submit","docs\u002F2.components\u002F5.chat-prompt-submit",{"title":46,"path":47,"stem":48},"DocsSearchModal","\u002Fdocs\u002Fcomponents\u002Fdocs-search-modal","docs\u002F2.components\u002F6.docs-search-modal",false,[51,53,55,57,59,61,63,65,67],{"path":27,"title":26,"description":52},"Build Nuxt chat interfaces with installable shadcn-vue components you own and compose.",{"path":31,"title":30,"description":54},"Render an individual chat message bubble with AI SDK parts, actions, and layout control.",{"path":35,"title":34,"description":56},"Compose chat message lists with scrolling behavior, loading states, and action-ready assistant output.",{"path":39,"title":38,"description":58},"Build chat input flows with an auto-resizing prompt, keyboard shortcuts, and flexible slot composition.",{"path":43,"title":42,"description":60},"Handle chat submit, stop, and retry actions with a status-aware control for prompt workflows.",{"path":21,"title":20,"description":62},"Explore reusable components that complement Nuxt templates and real app workflows.",{"path":47,"title":46,"description":64},"Add a lightweight local search modal to Nuxt documentation interfaces.",{"path":17,"title":16,"description":66},"Start from templates or install individual components in your Nuxt project.",{"path":11,"title":10,"description":68},"Stackhacker UI is an open-source collection of Nuxt templates and components for the shadcn-vue community.",[70],{"title":5,"path":6,"stem":7,"children":71,"page":49},[72,76],{"title":10,"path":11,"stem":12,"children":73},[74,75],{"title":10,"path":11,"stem":12},{"title":16,"path":17,"stem":18},{"title":20,"path":21,"stem":22,"children":77},[78,79,80,81,82,83,84],{"title":20,"path":21,"stem":22},{"title":26,"path":27,"stem":28},{"title":30,"path":31,"stem":32},{"title":34,"path":35,"stem":36},{"title":38,"path":39,"stem":40},{"title":42,"path":43,"stem":44},{"title":46,"path":47,"stem":48},[86,88,89,90,92,93,94,95,96],{"path":11,"category":87},"overview",{"path":17,"category":87},{"path":21,"category":87},{"path":27,"category":91},"chat",{"path":31,"category":91},{"path":35,"category":91},{"path":39,"category":91},{"path":43,"category":91},{"path":47,"category":97},"content",[99,100,101,102,103,104,105,106,107],{"path":11,"category":87},{"path":17,"category":87},{"path":21,"category":87},{"path":27,"category":91},{"path":31,"category":91},{"path":35,"category":91},{"path":39,"category":91},{"path":43,"category":91},{"path":47,"category":97},{"id":109,"title":34,"body":110,"category":91,"description":56,"extension":350,"meta":351,"navigation":352,"path":35,"seo":353,"stem":36,"__hash__":354},"docs\u002Fdocs\u002F2.components\u002F3.chat-messages.md",{"type":111,"value":112,"toc":337},"minimark",[113,117,121,132,136,144,148,153,155,159,163,289,293],[114,115],"component-preview",{"name":116},"ChatMessagesDemo",[118,119,16],"h2",{"id":120},"installation",[122,123,129],"pre",{"className":124,"code":126,"language":127,"meta":128},[125],"language-bash","npx shadcn-vue@latest add \"https:\u002F\u002Fui.stackhacker.io\u002Fr\u002Fchat-messages.json\"\n","bash","",[130,131,126],"code",{"__ignoreMap":128},[118,133,135],{"id":134},"usage","Usage",[122,137,142],{"className":138,"code":140,"language":141,"meta":128},[139],"language-vue","\u003Cscript setup lang=\"ts\">\nimport { Copy } from '@lucide\u002Fvue'\nimport { ChatMessages } from '@\u002Fcomponents\u002Fchat-messages'\n\nconst assistant = {\n  actions: [{ label: 'Copy message', icon: Copy }]\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CChatMessages :messages=\"messages\" :status=\"status\" :assistant=\"assistant\" should-auto-scroll \u002F>\n\u003C\u002Ftemplate>\n","vue",[130,143,140],{"__ignoreMap":128},[118,145,147],{"id":146},"examples","Examples",[149,150,152],"h3",{"id":151},"default","Default",[114,154],{"name":116},[118,156,158],{"id":157},"api-reference","API Reference",[149,160,162],{"id":161},"props","Props",[164,165,166,184],"table",{},[167,168,169],"thead",{},[170,171,172,176,179,181],"tr",{},[173,174,175],"th",{},"Prop",[173,177,178],{},"Type",[173,180,152],{},[173,182,183],{},"Description",[185,186,187,208,232,252,272],"tbody",{},[170,188,189,195,200,205],{},[190,191,192],"td",{},[130,193,194],{},"messages",[190,196,197],{},[130,198,199],{},"UIMessage[]",[190,201,202],{},[130,203,204],{},"[]",[190,206,207],{},"Array of messages to display.",[170,209,210,215,220,225],{},[190,211,212],{},[130,213,214],{},"status",[190,216,217],{},[130,218,219],{},"'ready' | 'streaming' | 'submitted' | 'error'",[190,221,222],{},[130,223,224],{},"'ready'",[190,226,227,228,231],{},"Current chat status. Shows loading indicator when ",[130,229,230],{},"submitted",".",[170,233,234,239,244,249],{},[190,235,236],{},[130,237,238],{},"shouldAutoScroll",[190,240,241],{},[130,242,243],{},"boolean",[190,245,246],{},[130,247,248],{},"false",[190,250,251],{},"Enable auto-scroll to bottom on new messages.",[170,253,254,259,264,267],{},[190,255,256],{},[130,257,258],{},"assistant",[190,260,261],{},[130,262,263],{},"{ actions?: ChatMessageAction[] }",[190,265,266],{},"—",[190,268,269,270,231],{},"Assistant-specific configuration. Action icons are Vue components passed through to ",[130,271,30],{},[170,273,274,279,284,286],{},[190,275,276],{},[130,277,278],{},"class",[190,280,281],{},[130,282,283],{},"string",[190,285,266],{},[190,287,288],{},"Additional CSS classes.",[149,290,292],{"id":291},"slots","Slots",[164,294,295,306],{},[167,296,297],{},[170,298,299,302,304],{},[173,300,301],{},"Slot",[173,303,162],{},[173,305,183],{},[185,307,308,322],{},[170,309,310,314,319],{},[190,311,312],{},[130,313,97],{},[190,315,316],{},[130,317,318],{},"{ message, index, id, role, parts }",[190,320,321],{},"Custom message content renderer.",[170,323,324,329,331],{},[190,325,326],{},[130,327,328],{},"indicator",[190,330,266],{},[190,332,333,334,336],{},"Custom loading indicator (shown when status is ",[130,335,230],{},").",{"title":128,"searchDepth":338,"depth":338,"links":339},2,[340,341,342,346],{"id":120,"depth":338,"text":16},{"id":134,"depth":338,"text":135},{"id":146,"depth":338,"text":147,"children":343},[344],{"id":151,"depth":345,"text":152},3,{"id":157,"depth":338,"text":158,"children":347},[348,349],{"id":161,"depth":345,"text":162},{"id":291,"depth":345,"text":292},"md",{},true,{"title":34,"description":56},"J7Bcy52gWvMuNNbRuKjSao1AwVBC0ycER69Eg6ovbF4",[356,357],{"title":30,"path":31,"stem":32,"children":-1},{"title":38,"path":39,"stem":40,"children":-1},1782311376738]