Introduction

Overview

DocumentationLayout provides a sticky header, a collapsible-tree navigation sidebar (a drawer on mobile), and a scroll-spy "On this page" panel - the shape most documentation and reference sites need out of the box. Scroll this preview to see the "On this page" panel on the right track which section you're reading.

Installation

Add the template to your project, then wrap your page content with it.

Usage

Pass navSections for the left sidebar and tocHeadings for the right panel - the active heading highlights automatically as you scroll.

Props

See the Props table below this demo for the full API, including breadcrumbs, page title, and previous/next page links.