vike-vue-content

Sidebar navigation, rendering the navigation tree recursively.

DocsNav

The sidebar navigation, rendering the navigation tree recursively.

import { DocsNav } from 'vike-vue-content/components/docs-nav'

Props

PropTypeDefaultDescription
itemsDocsNavigationItem[][]Navigation items (with nested children).
currentPathstring''Current path, used to highlight the active item.

Internally uses <Link> to render links, handling the base prefix automatically.