Before/after slider with a draggable handle that works on touch and mouse.
1,980
Bookmarks
5,100
Installs
47,300
Views
import { ImageComparison } from "@/components/ui/image-comparison"
export default function DemoImageComparison() {
return (
<div className="flex min-h-[360px] items-center justify-center p-8">
<ImageComparison
className="aspect-[16/9] w-full max-w-2xl"
beforeLabel="Draft"
afterLabel="Shipped"20 more lines behind a plan
Previews are free to watch. Reading and copying the full source needs a plan.
See plansThat's all 6 components
Part of Wren Micro — browse the full library on Nuxus.