React Components
Build interactive image comparison components with React. Every example below is live and runs right on this page.
Installation
npm install @blazediff/reactSwipeMode
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