Pretext

Pretext by Cheng Lou. Pure JavaScript/TypeScript library for fast, accurate multi-line text measurement and layout without DOM reflow. Use when text dimensions drive a layout decision: button or label overflow checks, text height before render, shrink-wrap or balanced text, virtualized lists and masonry, input autosizing, or layout-shift prevention on async text loads.

tommylower Updated 2 repo stars

File contents

tommylower/cortex commit 0bd3dd2306

Frequently asked questions

npx get-skill add tommylower/pretext