comparisons
Copy comparator with switchable view
Two versions of a text compared with a word level diff computed in the browser through a longest common subsequence dynamic programming table and path reconstruction, memoized on both texts. Its signature is the toggle between side by side and unified views that preserves the reading position: it records the word centered in the viewport before switching and recenters it afterwards, with the restructure animated by layout transitions.
See it live and copy its promptWhat you can adjust
- Original text
- Revised text
- Insertion color
- Deletion color
- Initial view
- Font size
- Line height
- Strikethrough on deletions
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.
