Image compare

Core

Drag a divider across two images to see what changed.

pnpm dlx shadcn@latest add https://wui.alann.works/r/image-compare.json
After (wUI tokens)
Before (wireframe)

API Reference

PropTypeDefault
before*ReactNoderequired
after*ReactNoderequired
positionnumber—
defaultPositionnumber—
onPositionChange(position: number) => void—
orientation"horizontal" | "vertical"—
labels[string, string] | false—
labelstring—
aspectRatiostring—
classNamestring—
Categories
data
Dependencies
lucide-reactmotion