Documentation menu

Components

20 items — every one ships a live demo, three install paths, and its full source.

code

Shiki-highlighted code windows: tabbed snippets with crossfade, and an annotated walkthrough with bidirectional linked highlighting.

codeshikisyntax-highlighting

compare

Before/after clip-path wipe with pointer, keyboard, and slider-role support.

figureinteractiveslider

countup

Scroll-triggered number count-up with reserved width (no layout shift), built-in Intl formatters, and reduced-motion instant-set.

numberanimationscroll

cover

Deterministic FNV-1a-seeded generative SVG cover art in three variants: curves, blocks, bars.

generativesvgcover

diagram

HTML/CSS block diagrams — rows, blocks with variants and tooltips, diamonds, brackets, notes, and a legend. Real DOM: selectable, screen-reader reachable, reflows.

diagramlayoutaccessibility

dotgrid

Full-viewport canvas dot grid that drifts toward the cursor; pauses when the tab is hidden, off under reduced motion.

canvasbackgroundmotion

figure

Figure plate with run-in caption, plus an editorial table with small-caps heads and hairline rules.

figurecaptiontable

hooks

Scroll and motion hooks: useReducedMotion, useScrollspy, useReadProgress, useInView, plus smoothScrollTo.

hooksscrollmotion

island

Morphing sticky header for long reads: progress ring, scrollspy section, section menu, and a Read-next end phase.

navigationheaderscrollspy

math

Display equation with a plain-English restatement and a 'show the math' derivation disclosure. Children are typically KaTeX/MathML output — katex is an optional peer, not imported here.

mathprosedisclosure

notes

Tufte-style numbered margin notes (CSS-counter ordered, tap-to-expand below 1280px) and dotted-underline term popovers with viewport-edge flip.

prosesidenotetooltip

palette

Cmd-K fuzzy command palette with subsequence matching, character highlighting, focus trap, and on-page section jumps.

command-palettesearchkeyboard

rail

Left-edge section minimap: one tick per heading, active-section highlight, labels on hover. Hidden below 1280px.

navigationscrollspytoc

scrolly

Scrollytelling stage: a pinned figure that updates as prose steps scroll past, unpinning below 1024px.

figurescrollytellinglayout

scrub

Tangle-style inline number scrubber: drag the variable itself, with a compact range input for pointer and keyboard access.

numberinputdrag

spark

Server-safe inline SVG sparklines and proportion bars that sit on the text baseline.

chartsparklinesvg

stepper

Render-prop step sequencer with play/pause that auto-pauses off-screen and under reduced motion.

figureinteractiveanimation

tokens

The moco token contract: warm-paper light theme + warm-dark theme, lime accent, four font slots. Import once; every moco component styles itself from these variables.

themetokenssetup

view-transitions

Cross-fade View Transitions for Next.js App Router route changes, plus a no-js flag remover.

navigationanimationnext

zoom

Lightbox affordance for figures — Esc, click-outside, focus restore, and scroll lock included.

lightboxfiguredialog