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