Sidebar
Sidebar configuration
Properties
groupstringpagestringtitlestringpagesarray of PageURLSourcePageSourcePagepagestringRequiredsourcestringRequiredtitlestringcontextControlsContextControlsSidebarSidebargroupstringpagestringtitlestringpagesarray of PageURLiconstringexpandedbooleancollapsedbooleanorderOrderasTocSidebarAsTocOptionsSidebarAsTocOptionsindicatorbooleanbreadcrumbsbooleanbooleanbooleanComponentPageComponentPagefixedbooleancomponentRequiredComponentPageImportComponentPageImportimportstringRequiredpropsRecord<string, any>stringstringstringstringVirtualPageVirtualPageiconstringexpandedbooleancollapsedbooleanorderOrderasTocSidebarAsTocOptionsSidebarAsTocOptionsindicatorbooleanbreadcrumbsbooleanbooleanboolean
Label for a entry — a page reference with no group and no
pages . It overrides the page's frontmatter title, and is the only way to label a route that has no markdown behind it, such as a generated API reference: without it the sidebar row renders blank.
Fold this group behind a toggle on its header: it starts collapsed and opens on a click, or when it holds the active page (like the rest of the sidebar's open state, it starts over on the next page). Only meaningful for a TOP-LEVEL group — a nested group starts collapsed anyway (see
expanded ). The generated API reference sets it on its objects group ( api.openapi[..].options.objectsCollapsed ).
Treat this group's pages as a table of contents instead of real pages. Their markdown files are NOT routable (no routes, no prerender) — the content of every page is injected as a section into the enclosing route's index page, sidebar items scroll to those sections (with scroll-spy active marking), and the right-hand TOC is hidden on that composed page.
true enables it with defaults; the object form tunes behaviors (all default to enabled).
Behavior options for an asToc sidebar group (the object form). Every option defaults to true — asToc: true ≡ asToc: .
TOC-style visual indicator on the group's sidebar items (the vertical track line the right-hand TOC uses). Default true .
Breadcrumbs on the composed host page that follow the section being read (group name / section title, updated by scroll). Default true .
Show your support! Star us on GitHub ⭐️