scrollAreas

Reading anchor against layout shift

A self scrolling documentation panel that records with getBoundingClientRect the top of the first block under the reading line, applies height changes above it (figure finishing its load, notice, expanding code, table loading rows) and corrects scrollTop in a layout effect before paint; a toggle disables the compensation and a counter reports in real pixels how far the text jumps each time.

See it live and copy its prompt

What you can adjust

How this catalog works

Every component ships with its reproduction prompt: the text you paste into an AI builder to get exactly this piece. The values above are editable, and the prompt you copy carries the ones you chose, so what gets generated is what you were looking at.

Web construida por