[{"data":1,"prerenderedAt":404},["ShallowReactive",2],{"mobile-docs-navigation":3,"command-menu-docs":58,"navigation":81,"mobile-docs-page-meta":99,"docs-pages-category":115,"\u002Fdocs\u002Fcomponents\u002Fpage-toc":127,"surround-\u002Fdocs\u002Fcomponents\u002Fpage-toc":401},[4],{"title":5,"path":6,"stem":7,"children":8,"page":57},"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],{"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",{"title":50,"path":51,"stem":52},"PricingPlans","\u002Fdocs\u002Fcomponents\u002Fpricing-plans","docs\u002F2.components\u002F7.pricing-plans",{"title":54,"path":55,"stem":56},"PageToc","\u002Fdocs\u002Fcomponents\u002Fpage-toc","docs\u002F2.components\u002F8.page-toc",false,[59,61,63,65,67,69,71,73,75,77,79],{"path":27,"title":26,"description":60},"Build Nuxt chat interfaces with installable shadcn-vue components you own and compose.",{"path":31,"title":30,"description":62},"Render an individual chat message bubble with AI SDK parts, actions, and layout control.",{"path":35,"title":34,"description":64},"Compose chat message lists with scrolling behavior, loading states, and action-ready assistant output.",{"path":39,"title":38,"description":66},"Build chat input flows with an auto-resizing prompt, keyboard shortcuts, and flexible slot composition.",{"path":43,"title":42,"description":68},"Handle chat submit, stop, and retry actions with a status-aware control for prompt workflows.",{"path":21,"title":20,"description":70},"Explore reusable components that complement Nuxt templates and real app workflows.",{"path":47,"title":46,"description":72},"Add a lightweight local search modal to Nuxt documentation interfaces.",{"path":17,"title":16,"description":74},"Start from templates or install individual components in your Nuxt project.",{"path":11,"title":10,"description":76},"Stackhacker UI is an open-source collection of Nuxt templates and components for the shadcn-vue community.",{"path":55,"title":54,"description":78},"Render an on-page table of contents from app-supplied heading links.",{"path":51,"title":50,"description":80},"Render a responsive pricing plan section from app-owned data.",[82],{"title":5,"path":6,"stem":7,"children":83,"page":57},[84,88],{"title":10,"path":11,"stem":12,"children":85},[86,87],{"title":10,"path":11,"stem":12},{"title":16,"path":17,"stem":18},{"title":20,"path":21,"stem":22,"children":89},[90,91,92,93,94,95,96,97,98],{"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},[100,102,103,104,106,107,108,109,110,112,114],{"path":11,"category":101},"overview",{"path":17,"category":101},{"path":21,"category":101},{"path":27,"category":105},"chat",{"path":31,"category":105},{"path":35,"category":105},{"path":39,"category":105},{"path":43,"category":105},{"path":47,"category":111},"content",{"path":51,"category":113},"marketing",{"path":55,"category":111},[116,117,118,119,120,121,122,123,124,125,126],{"path":11,"category":101},{"path":17,"category":101},{"path":21,"category":101},{"path":27,"category":105},{"path":31,"category":105},{"path":35,"category":105},{"path":39,"category":105},{"path":43,"category":105},{"path":47,"category":111},{"path":51,"category":113},{"path":55,"category":111},{"id":128,"title":54,"body":129,"category":111,"description":78,"extension":396,"meta":397,"navigation":398,"path":55,"seo":399,"stem":56,"__hash__":400},"docs\u002Fdocs\u002F2.components\u002F8.page-toc.md",{"type":130,"value":131,"toc":381},"minimark",[132,136,140,151,155,163,174,182,186,191,202,208,211,215,225,228,234,238,243,245,249,253,371,375],[133,134],"component-preview",{"name":135},"PageTocDemo",[137,138,16],"h2",{"id":139},"installation",[141,142,148],"pre",{"className":143,"code":145,"language":146,"meta":147},[144],"language-bash","npx shadcn-vue@latest add \"https:\u002F\u002Fui.stackhacker.io\u002Fr\u002Fpage-toc.json\"\n","bash","",[149,150,145],"code",{"__ignoreMap":147},[137,152,154],{"id":153},"usage","Usage",[141,156,161],{"className":157,"code":159,"language":160,"meta":147},[158],"language-vue","\u003Cscript setup lang=\"ts\">\nimport { PageToc, type PageTocItem } from \"@\u002Fcomponents\u002Fpage-toc\";\n\nconst headings: PageTocItem[] = [\n  { id: \"overview\", title: \"Overview\", depth: 2 },\n  { id: \"installation\", title: \"Installation\", depth: 2 },\n  { id: \"usage\", title: \"Usage\", depth: 2 },\n  { id: \"examples\", title: \"Examples\", depth: 3 },\n];\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CPageToc :items=\"headings\" class=\"sticky top-6\" \u002F>\n\u003C\u002Ftemplate>\n","vue",[149,162,159],{"__ignoreMap":147},[164,165,166,169,170,173],"p",{},[149,167,168],{},"href"," defaults to ",[149,171,172],{},"#${id}",". Pass a full path when your page shell needs route-aware anchors.",[141,175,180],{"className":176,"code":178,"language":179,"meta":147},[177],"language-ts","const headings: PageTocItem[] = [\n  { id: \"installation\", title: \"Installation\", href: \"\u002Fdocs\u002Fcomponents\u002Fpage-toc#installation\" },\n];\n","ts",[149,181,178],{"__ignoreMap":147},[137,183,185],{"id":184},"app-owned-headings","App-Owned Headings",[164,187,188,190],{},[149,189,54],{}," owns the visual table-of-contents list and active-link behavior for the data you pass in. Your app owns markdown parsing, heading extraction, page layout, and current route handling.",[164,192,193,194,197,198,201],{},"For Nuxt Content, map ",[149,195,196],{},"page.body.toc.links"," or another app-level source into ",[149,199,200],{},"PageTocItem[]"," before rendering the component.",[141,203,206],{"className":204,"code":205,"language":179,"meta":147},[177],"import type { PageTocItem } from \"@\u002Fcomponents\u002Fpage-toc\";\n\nconst headings: PageTocItem[] = page.body.toc.links.flatMap(link => [\n  {\n    id: link.id,\n    title: link.text,\n    depth: link.depth,\n  },\n  ...(link.children ?? []).map(child => ({\n    id: child.id,\n    title: child.text,\n    depth: child.depth,\n  })),\n]);\n",[149,207,205],{"__ignoreMap":147},[164,209,210],{},"The component intentionally does not import Nuxt Content types, query content collections, inspect the current route, or create the page's aside column.",[137,212,214],{"id":213},"active-state","Active State",[164,216,217,218,220,221,224],{},"By default, ",[149,219,54],{}," observes matching heading elements by ",[149,222,223],{},"id"," in the browser and highlights the active link.",[164,226,227],{},"Use controlled active state when your page already knows the active heading, or when rendering a static preview.",[141,229,232],{"className":230,"code":231,"language":160,"meta":147},[158],"\u003CPageToc\n  :items=\"headings\"\n  active-id=\"installation\"\n  :track-active=\"false\"\n\u002F>\n",[149,233,231],{"__ignoreMap":147},[137,235,237],{"id":236},"examples","Examples",[239,240,242],"h3",{"id":241},"default","Default",[133,244],{"name":135},[137,246,248],{"id":247},"api-reference","API Reference",[239,250,252],{"id":251},"props","Props",[254,255,256,274],"table",{},[257,258,259],"thead",{},[260,261,262,266,269,271],"tr",{},[263,264,265],"th",{},"Prop",[263,267,268],{},"Type",[263,270,242],{},[263,272,273],{},"Description",[275,276,277,297,317,337,354],"tbody",{},[260,278,279,285,289,294],{},[280,281,282],"td",{},[149,283,284],{},"items",[280,286,287],{},[149,288,200],{},[280,290,291],{},[149,292,293],{},"[]",[280,295,296],{},"Heading links supplied by your app.",[260,298,299,304,309,314],{},[280,300,301],{},[149,302,303],{},"title",[280,305,306],{},[149,307,308],{},"string",[280,310,311],{},[149,312,313],{},"\"On this page\"",[280,315,316],{},"Label rendered above the links. Use an empty string to hide it.",[260,318,319,324,329,334],{},[280,320,321],{},[149,322,323],{},"trackActive",[280,325,326],{},[149,327,328],{},"boolean",[280,330,331],{},[149,332,333],{},"true",[280,335,336],{},"Observe matching page headings and update the active link.",[260,338,339,344,348,351],{},[280,340,341],{},[149,342,343],{},"activeId",[280,345,346],{},[149,347,308],{},[280,349,350],{},"—",[280,352,353],{},"Controlled active heading id. Disables internal active tracking when supplied.",[260,355,356,361,366,368],{},[280,357,358],{},[149,359,360],{},"class",[280,362,363],{},[149,364,365],{},"HTMLAttributes[\"class\"]",[280,367,350],{},[280,369,370],{},"Additional CSS classes for the root nav.",[239,372,374],{"id":373},"types","Types",[141,376,379],{"className":377,"code":378,"language":179,"meta":147},[177],"interface PageTocItem {\n  id: string;\n  title: string;\n  href?: string;\n  depth?: number;\n}\n",[149,380,378],{"__ignoreMap":147},{"title":147,"searchDepth":382,"depth":382,"links":383},2,[384,385,386,387,388,392],{"id":139,"depth":382,"text":16},{"id":153,"depth":382,"text":154},{"id":184,"depth":382,"text":185},{"id":213,"depth":382,"text":214},{"id":236,"depth":382,"text":237,"children":389},[390],{"id":241,"depth":391,"text":242},3,{"id":247,"depth":382,"text":248,"children":393},[394,395],{"id":251,"depth":391,"text":252},{"id":373,"depth":391,"text":374},"md",{},true,{"title":54,"description":78},"HqAU_56XFXZ8yX_txl_RlsH4npXlYOrq_iYFBoYNw0Y",[402,403],{"title":50,"path":51,"stem":52,"children":-1},null,1782375509086]