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