Compositions
Core Primitives
Transitions
Typography
Customize
1
60
20
Installation
$ pnpm dlx shadcn@latest add @framecn/code-diff-wipe
Usage
import { CodeDiffWipe } from "@/components/framecn/code-diff-wipe";<CodeDiffWipe />API Reference
CodeDiffWipe
| Prop | Type | Default |
|---|---|---|
before | string | DEFAULT_BEFORE |
after | string | DEFAULT_AFTER |
language | string | "tsx" |
background | string | "#0a0a0a" |
accent | string | "#0ea5e9" |
transitionStart | number | 20 |
transitionDuration | number | 60 |
showHandle | boolean | true |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 120 |
width | number | 1280 |
height | number | 720 |
className | string | - |
Notes
Before/after code comparison
A clip-path slider reveals new code over old code. Great for showing code changes or refactoring diffs.