Layout
PageOutline
A sticky outline of the page's sections that follows the scroll. Shown from 1100px up. Works with the window or your own scroll container.
Preview
Installation
// Resolves dependencies, copies the source, and installs npm packages automatically.
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| items | { id, label, level, count? }[] | - | One per section id on the page |
| file | string | - | Name in the chip at the top |
| footer | ReactNode | - | Lines under the list |
| scrollContainer | () => HTMLElement | null | - | What scrolls, when it is not the window |
| offset | number | 24 | Space above a heading after a jump |