[{"data":1,"prerenderedAt":440},["ShallowReactive",2],{"mobile-docs-navigation":3,"command-menu-docs":86,"navigation":123,"mobile-docs-page-meta":148,"docs-pages-category":171,"\u002Fdocs\u002Fcomponents\u002Fchat-messages":190,"surround-\u002Fdocs\u002Fcomponents\u002Fchat-messages":437},[4],{"title":5,"path":6,"stem":7,"children":8,"page":85},"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,49,53,57,61,65,69,73,77,81],{"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},"PolaroidCard","\u002Fdocs\u002Fcomponents\u002Fpolaroid-card","docs\u002F2.components\u002F10.polaroid-card",{"title":34,"path":35,"stem":36},"FeatureCard","\u002Fdocs\u002Fcomponents\u002Ffeature-card","docs\u002F2.components\u002F11.feature-card",{"title":38,"path":39,"stem":40},"ChangelogTimeline","\u002Fdocs\u002Fcomponents\u002Fchangelog-timeline","docs\u002F2.components\u002F12.changelog-timeline",{"title":42,"path":43,"stem":44},"MetricsGrid","\u002Fdocs\u002Fcomponents\u002Fmetrics-grid","docs\u002F2.components\u002F13.metrics-grid",{"title":46,"path":47,"stem":48},"ChatMessage","\u002Fdocs\u002Fcomponents\u002Fchat-message","docs\u002F2.components\u002F2.chat-message",{"title":50,"path":51,"stem":52},"ChatMessages","\u002Fdocs\u002Fcomponents\u002Fchat-messages","docs\u002F2.components\u002F3.chat-messages",{"title":54,"path":55,"stem":56},"ChatPrompt","\u002Fdocs\u002Fcomponents\u002Fchat-prompt","docs\u002F2.components\u002F4.chat-prompt",{"title":58,"path":59,"stem":60},"ChatPromptSubmit","\u002Fdocs\u002Fcomponents\u002Fchat-prompt-submit","docs\u002F2.components\u002F5.chat-prompt-submit",{"title":62,"path":63,"stem":64},"DocsSearchModal","\u002Fdocs\u002Fcomponents\u002Fdocs-search-modal","docs\u002F2.components\u002F6.docs-search-modal",{"title":66,"path":67,"stem":68},"PricingPlans","\u002Fdocs\u002Fcomponents\u002Fpricing-plans","docs\u002F2.components\u002F7.pricing-plans",{"title":70,"path":71,"stem":72},"PageToc","\u002Fdocs\u002Fcomponents\u002Fpage-toc","docs\u002F2.components\u002F8.page-toc",{"title":74,"path":75,"stem":76},"ReasoningDisclosure","\u002Fdocs\u002Fcomponents\u002Freasoning-disclosure","docs\u002F2.components\u002F8.reasoning-disclosure",{"title":78,"path":79,"stem":80},"DocsPager","\u002Fdocs\u002Fcomponents\u002Fdocs-pager","docs\u002F2.components\u002F9.docs-pager",{"title":82,"path":83,"stem":84},"HomeCta","\u002Fdocs\u002Fcomponents\u002Fhome-cta","docs\u002F2.components\u002F9.home-cta",false,[87,89,91,93,95,97,99,101,103,105,107,109,111,113,115,117,119,121],{"path":39,"title":38,"description":88},"Render a release timeline from app-owned changelog data with optional rich body slots.",{"path":27,"title":26,"description":90},"Build Nuxt chat interfaces with installable shadcn-vue components you own and compose.",{"path":47,"title":46,"description":92},"Render an individual chat message bubble with AI SDK parts, actions, and layout control.",{"path":51,"title":50,"description":94},"Compose chat message lists with scrolling behavior, loading states, and action-ready assistant output.",{"path":55,"title":54,"description":96},"Build chat input flows with an auto-resizing prompt, keyboard shortcuts, and flexible slot composition.",{"path":59,"title":58,"description":98},"Handle chat submit, stop, and retry actions with a status-aware control for prompt workflows.",{"path":21,"title":20,"description":100},"Explore reusable components that complement Nuxt templates and real app workflows.",{"path":79,"title":78,"description":102},"Render previous and next documentation links from app-owned page data.",{"path":63,"title":62,"description":104},"Add a lightweight local search modal to Nuxt documentation interfaces.",{"path":35,"title":34,"description":106},"Render a reusable feature, content, or navigation card with optional link and icon slot.",{"path":83,"title":82,"description":108},"Render a centered marketing CTA section with an integrated starfield background.",{"path":17,"title":16,"description":110},"Start from templates or install individual components in your Nuxt project.",{"path":11,"title":10,"description":112},"Stackhacker UI is an open-source collection of Nuxt templates and components for the shadcn-vue community.",{"path":43,"title":42,"description":114},"Render a responsive marketing metrics section from app-owned data.",{"path":71,"title":70,"description":116},"Render an on-page table of contents from app-supplied heading links.",{"path":31,"title":30,"description":118},"Render a tilted photo card with app-owned image data and explicit presentation controls.",{"path":67,"title":66,"description":120},"Render a responsive pricing plan section from app-owned data.",{"path":75,"title":74,"description":122},"Show app-owned AI reasoning text in a compact collapsible disclosure.",[124],{"title":5,"path":6,"stem":7,"children":125,"page":85},[126,130],{"title":10,"path":11,"stem":12,"children":127},[128,129],{"title":10,"path":11,"stem":12},{"title":16,"path":17,"stem":18},{"title":20,"path":21,"stem":22,"children":131},[132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147],{"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},{"title":50,"path":51,"stem":52},{"title":54,"path":55,"stem":56},{"title":58,"path":59,"stem":60},{"title":62,"path":63,"stem":64},{"title":66,"path":67,"stem":68},{"title":70,"path":71,"stem":72},{"title":74,"path":75,"stem":76},{"title":78,"path":79,"stem":80},{"title":82,"path":83,"stem":84},[149,151,152,153,155,157,159,160,161,162,163,164,165,166,167,168,169,170],{"path":11,"category":150},"overview",{"path":17,"category":150},{"path":21,"category":150},{"path":27,"category":154},"chat",{"path":31,"category":156},"content",{"path":35,"category":158},"marketing",{"path":39,"category":156},{"path":43,"category":158},{"path":47,"category":154},{"path":51,"category":154},{"path":55,"category":154},{"path":59,"category":154},{"path":63,"category":156},{"path":67,"category":158},{"path":71,"category":156},{"path":75,"category":154},{"path":79,"category":156},{"path":83,"category":158},[172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189],{"path":11,"category":150},{"path":17,"category":150},{"path":21,"category":150},{"path":27,"category":154},{"path":31,"category":156},{"path":35,"category":158},{"path":39,"category":156},{"path":43,"category":158},{"path":47,"category":154},{"path":51,"category":154},{"path":55,"category":154},{"path":59,"category":154},{"path":63,"category":156},{"path":67,"category":158},{"path":71,"category":156},{"path":75,"category":154},{"path":79,"category":156},{"path":83,"category":158},{"id":191,"title":50,"body":192,"category":154,"description":94,"extension":432,"meta":433,"navigation":434,"path":51,"seo":435,"stem":52,"__hash__":436},"docs\u002Fdocs\u002F2.components\u002F3.chat-messages.md",{"type":193,"value":194,"toc":419},"minimark",[195,199,203,214,218,226,230,235,237,241,245,371,375],[196,197],"component-preview",{"name":198},"ChatMessagesDemo",[200,201,16],"h2",{"id":202},"installation",[204,205,211],"pre",{"className":206,"code":208,"language":209,"meta":210},[207],"language-bash","npx shadcn-vue@latest add \"https:\u002F\u002Fui.stackhacker.io\u002Fr\u002Fchat-messages.json\"\n","bash","",[212,213,208],"code",{"__ignoreMap":210},[200,215,217],{"id":216},"usage","Usage",[204,219,224],{"className":220,"code":222,"language":223,"meta":210},[221],"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",[212,225,222],{"__ignoreMap":210},[200,227,229],{"id":228},"examples","Examples",[231,232,234],"h3",{"id":233},"default","Default",[196,236],{"name":198},[200,238,240],{"id":239},"api-reference","API Reference",[231,242,244],{"id":243},"props","Props",[246,247,248,266],"table",{},[249,250,251],"thead",{},[252,253,254,258,261,263],"tr",{},[255,256,257],"th",{},"Prop",[255,259,260],{},"Type",[255,262,234],{},[255,264,265],{},"Description",[267,268,269,290,314,334,354],"tbody",{},[252,270,271,277,282,287],{},[272,273,274],"td",{},[212,275,276],{},"messages",[272,278,279],{},[212,280,281],{},"UIMessage[]",[272,283,284],{},[212,285,286],{},"[]",[272,288,289],{},"Array of messages to display.",[252,291,292,297,302,307],{},[272,293,294],{},[212,295,296],{},"status",[272,298,299],{},[212,300,301],{},"'ready' | 'streaming' | 'submitted' | 'error'",[272,303,304],{},[212,305,306],{},"'ready'",[272,308,309,310,313],{},"Current chat status. Shows loading indicator when ",[212,311,312],{},"submitted",".",[252,315,316,321,326,331],{},[272,317,318],{},[212,319,320],{},"shouldAutoScroll",[272,322,323],{},[212,324,325],{},"boolean",[272,327,328],{},[212,329,330],{},"false",[272,332,333],{},"Enable auto-scroll to bottom on new messages.",[252,335,336,341,346,349],{},[272,337,338],{},[212,339,340],{},"assistant",[272,342,343],{},[212,344,345],{},"{ actions?: ChatMessageAction[] }",[272,347,348],{},"—",[272,350,351,352,313],{},"Assistant-specific configuration. Action icons are Vue components passed through to ",[212,353,46],{},[252,355,356,361,366,368],{},[272,357,358],{},[212,359,360],{},"class",[272,362,363],{},[212,364,365],{},"string",[272,367,348],{},[272,369,370],{},"Additional CSS classes.",[231,372,374],{"id":373},"slots","Slots",[246,376,377,388],{},[249,378,379],{},[252,380,381,384,386],{},[255,382,383],{},"Slot",[255,385,244],{},[255,387,265],{},[267,389,390,404],{},[252,391,392,396,401],{},[272,393,394],{},[212,395,156],{},[272,397,398],{},[212,399,400],{},"{ message, index, id, role, parts }",[272,402,403],{},"Custom message content renderer.",[252,405,406,411,413],{},[272,407,408],{},[212,409,410],{},"indicator",[272,412,348],{},[272,414,415,416,418],{},"Custom loading indicator (shown when status is ",[212,417,312],{},").",{"title":210,"searchDepth":420,"depth":420,"links":421},2,[422,423,424,428],{"id":202,"depth":420,"text":16},{"id":216,"depth":420,"text":217},{"id":228,"depth":420,"text":229,"children":425},[426],{"id":233,"depth":427,"text":234},3,{"id":239,"depth":420,"text":240,"children":429},[430,431],{"id":243,"depth":427,"text":244},{"id":373,"depth":427,"text":374},"md",{},true,{"title":50,"description":94},"J7Bcy52gWvMuNNbRuKjSao1AwVBC0ycER69Eg6ovbF4",[438,439],{"title":46,"path":47,"stem":48,"children":-1},{"title":54,"path":55,"stem":56,"children":-1},1782555895835]