Skip to Content
New: blazediff-png - a from-scratch Rust PNG codec, byte-exact to libspng and faster on every fixture. Read more β†’
DocsInteractive UI ComponentsReact

React Components

Build interactive image comparison components with React. Every example below is live and runs right on this page.

Installation

npm install @blazediff/react
import { SwipeMode } from "@blazediff/react"; <SwipeMode src1="before.png" src2="after.png" onPositionChange={(position) => console.log(position)} />

All four components render from the @blazediff/ui headless engine and accept *ClassName props for styling. See the full API reference β†’.

Last updated on