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