Component packs › Mono › Diff Morph
Switch to After and kept lines glide to their new places, removed lines tint and fold away left, and added lines open up and slide in.
Diff Morph is a code diff from Mono, a component pack with 6 code components: Code UI where changes move: diffs slide lines in and out, and the terminal runs its script. Price: $2 for the whole pack.
Built with: LCS line diff, FLIP motion, +/− gutter.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
before | string | ||
after | string | ||
lang | MzLang | ||
filename | string | ||
label | string | ||
dark | boolean | ||
autoplay | number | false | Showcase mode: flips between before and after every N ms while visible. |
readonly showing: 'before' | 'after'show(which: 'before' | 'after'): voiddestroy(): voidimport DiffMorph from './DiffMorph';
<DiffMorph />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Code blocks.