Anatomy
Copy to clipboard
Variants
Minimap.Heatmap bins find hits, annotations or your own items along the document (bin, color) — a quick way to see where a term or the notes cluster.
Usage
mode="scroll"(default): pages keep the strip width and the strip scrolls in proportion with the document.mode="fit": the whole document shrinks to the strip.pages={false}: no previews — a slim scrollbar with markers.- Click to jump; drag the viewport (or anywhere) to scrub.
wheel="document"(default) scrolls the document from the strip;wheel="strip"scrolls the strip itself on long documents. - Keyboard: the strip is focusable — ↑ / ↓ step, PageUp / PageDown / Space move a screen, Home / End jump to the ends.
Minimap.Markerstakesitems({ page, y | fraction, height?, color?, kind?, label? }) and adds find hits, annotations and section starts from the surrounding roots.MinimapStateexposes the geometry for fully custom renderings.
API reference
Minimap.Root
Renders a <div> (or your element via child) and accepts its HTML attributes.
Data attributes
data-activedata-currentdata-draggingdata-indexdata-kinddata-modedata-partdata-pdf-minimapdata-pdf-minimap-banddata-pdf-minimap-pagedata-pdf-minimap-trackdata-previewsdata-scrollabledata-variantMinimap.Viewport
Renders a <div> (or your element via child) and accepts its HTML attributes.
No props of its own besides ref, child and children.
Data attributes
data-draggingdata-pdf-minimap-viewportMinimap.Markers
Renders a <div> (or your element via child) and accepts its HTML attributes.
Data attributes
data-kinddata-pdf-minimap-markerdata-pdf-minimap-markersMinimap.Heatmap
Renders a <div> (or your element via child) and accepts its HTML attributes.
Data attributes
data-pdf-minimap-heatdata-pdf-minimap-heatmap