Component
A scaled overview navigation component. Register waypoints in your content and render a minimap that lets users jump between sections.
View component changelogpreview
Introduction
Start here for an overview of the page and what it covers.
Installation
Add the package and import the styles once at the root of your app.
Usage
Compose the parts you need. Each part exposes data attributes for styling.
API
Every part forwards its ref and accepts the props of the element it renders.
Import all parts of the component and piece them together
Wraps both the waypoints and the minimap so they can share in-view state.
| Prop | Type | Default |
|---|---|---|
scrollable | boolean | false |
A button that scrolls to the matching waypoint. Exposes data-in-view while its waypoint is visible. Give it visible text or an aria-label.
| Prop | Type | Default |
|---|---|---|
value* | string | -- |
Registers a section in the minimap.
| Prop | Type | Default |
|---|---|---|
value* | string | -- |