[{"data":1,"prerenderedAt":467},["ShallowReactive",2],{"mobile-docs-navigation":3,"command-menu-docs":86,"navigation":123,"mobile-docs-page-meta":148,"docs-pages-category":171,"\u002Fdocs\u002Fcomponents\u002Fpage-toc":190,"surround-\u002Fdocs\u002Fcomponents\u002Fpage-toc":464},[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":70,"body":192,"category":156,"description":116,"extension":459,"meta":460,"navigation":461,"path":71,"seo":462,"stem":72,"__hash__":463},"docs\u002Fdocs\u002F2.components\u002F8.page-toc.md",{"type":193,"value":194,"toc":444},"minimark",[195,199,203,214,218,226,237,245,249,254,265,271,274,278,288,291,297,301,306,308,312,316,434,438],[196,197],"component-preview",{"name":198},"PageTocDemo",[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\u002Fpage-toc.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 { 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",[212,225,222],{"__ignoreMap":210},[227,228,229,232,233,236],"p",{},[212,230,231],{},"href"," defaults to ",[212,234,235],{},"#${id}",". Pass a full path when your page shell needs route-aware anchors.",[204,238,243],{"className":239,"code":241,"language":242,"meta":210},[240],"language-ts","const headings: PageTocItem[] = [\n  { id: \"installation\", title: \"Installation\", href: \"\u002Fdocs\u002Fcomponents\u002Fpage-toc#installation\" },\n];\n","ts",[212,244,241],{"__ignoreMap":210},[200,246,248],{"id":247},"app-owned-headings","App-Owned Headings",[227,250,251,253],{},[212,252,70],{}," 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.",[227,255,256,257,260,261,264],{},"For Nuxt Content, map ",[212,258,259],{},"page.body.toc.links"," or another app-level source into ",[212,262,263],{},"PageTocItem[]"," before rendering the component.",[204,266,269],{"className":267,"code":268,"language":242,"meta":210},[240],"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",[212,270,268],{"__ignoreMap":210},[227,272,273],{},"The component intentionally does not import Nuxt Content types, query content collections, inspect the current route, or create the page's aside column.",[200,275,277],{"id":276},"active-state","Active State",[227,279,280,281,283,284,287],{},"By default, ",[212,282,70],{}," observes matching heading elements by ",[212,285,286],{},"id"," in the browser and highlights the active link.",[227,289,290],{},"Use controlled active state when your page already knows the active heading, or when rendering a static preview.",[204,292,295],{"className":293,"code":294,"language":223,"meta":210},[221],"\u003CPageToc\n  :items=\"headings\"\n  active-id=\"installation\"\n  :track-active=\"false\"\n\u002F>\n",[212,296,294],{"__ignoreMap":210},[200,298,300],{"id":299},"examples","Examples",[302,303,305],"h3",{"id":304},"default","Default",[196,307],{"name":198},[200,309,311],{"id":310},"api-reference","API Reference",[302,313,315],{"id":314},"props","Props",[317,318,319,337],"table",{},[320,321,322],"thead",{},[323,324,325,329,332,334],"tr",{},[326,327,328],"th",{},"Prop",[326,330,331],{},"Type",[326,333,305],{},[326,335,336],{},"Description",[338,339,340,360,380,400,417],"tbody",{},[323,341,342,348,352,357],{},[343,344,345],"td",{},[212,346,347],{},"items",[343,349,350],{},[212,351,263],{},[343,353,354],{},[212,355,356],{},"[]",[343,358,359],{},"Heading links supplied by your app.",[323,361,362,367,372,377],{},[343,363,364],{},[212,365,366],{},"title",[343,368,369],{},[212,370,371],{},"string",[343,373,374],{},[212,375,376],{},"\"On this page\"",[343,378,379],{},"Label rendered above the links. Use an empty string to hide it.",[323,381,382,387,392,397],{},[343,383,384],{},[212,385,386],{},"trackActive",[343,388,389],{},[212,390,391],{},"boolean",[343,393,394],{},[212,395,396],{},"true",[343,398,399],{},"Observe matching page headings and update the active link.",[323,401,402,407,411,414],{},[343,403,404],{},[212,405,406],{},"activeId",[343,408,409],{},[212,410,371],{},[343,412,413],{},"—",[343,415,416],{},"Controlled active heading id. Disables internal active tracking when supplied.",[323,418,419,424,429,431],{},[343,420,421],{},[212,422,423],{},"class",[343,425,426],{},[212,427,428],{},"HTMLAttributes[\"class\"]",[343,430,413],{},[343,432,433],{},"Additional CSS classes for the root nav.",[302,435,437],{"id":436},"types","Types",[204,439,442],{"className":440,"code":441,"language":242,"meta":210},[240],"interface PageTocItem {\n  id: string;\n  title: string;\n  href?: string;\n  depth?: number;\n}\n",[212,443,441],{"__ignoreMap":210},{"title":210,"searchDepth":445,"depth":445,"links":446},2,[447,448,449,450,451,455],{"id":202,"depth":445,"text":16},{"id":216,"depth":445,"text":217},{"id":247,"depth":445,"text":248},{"id":276,"depth":445,"text":277},{"id":299,"depth":445,"text":300,"children":452},[453],{"id":304,"depth":454,"text":305},3,{"id":310,"depth":445,"text":311,"children":456},[457,458],{"id":314,"depth":454,"text":315},{"id":436,"depth":454,"text":437},"md",{},true,{"title":70,"description":116},"HqAU_56XFXZ8yX_txl_RlsH4npXlYOrq_iYFBoYNw0Y",[465,466],{"title":66,"path":67,"stem":68,"children":-1},{"title":74,"path":75,"stem":76,"children":-1},1782555895573]