Skip to main content
WireKit

Documentation Reader

A heavier reading-shell composition targeting the "Stripe / Linear docs" archetype: comfortable density, sidebar TOC, time-to-read meta, and the new every-item density-overview minimap. Designed for technical docs with deep h2 / h3 / h4 outlines where readers stay on a single page for extended periods.

Differs from the long-form-article recipe in three ways: minimap-on (paragraph-level density-overview alongside the heading-level spine), longer-dwell bookmark threshold for documentation pacing, and a power-user composition section showing how to skip the shell when its toggles + density preset don't cover the customization need.

Full Composition

Stripe / Linear archetype

Differences from long-form-article

Aspect long-form-article documentation-reader
Density preset comfortable (default) comfortable (default)
Minimap off on (paragraph-level density alongside heading TOC)
Time-to-read meta off on
Bookmark min-dwell 30s 120s (tunable)

Power-user composition (skip the shell)

When the shell's toggles + density preset don't cover the customization need (numbered spine + per-section fill + back-to-top + custom wpm + custom bookmark threshold all at once), compose the primitives directly. The shell covers the common defaults case, and power-users opt out to the primitives entirely — that's the design intent of the Shape B reduced API.

Power-user composition — primitives mounted directly

Section-Changed Analytics

Listen for wirekit:reading-spine:section-changed to update browser-tab title or fire analytics on section view. The handler wraps the reading-shell so the dispatched event bubbles up; the shell otherwise stays a plain composition wrapper.

Section-changed analytics — title updates on active-section change

All five reading-* components ship @media print { display: none !important } rules — the bar, spine, and bookmark vanish on print. Readers who do "Print to PDF" get the article body cleanly, no chrome overprinted on every page.

  • Long-form Article — lighter sibling recipe for blog posts
  • Reading — the consolidated family page covering every primitive + composition + family contracts