Before After Wipe

Motion

A before and after comparison slider in React: drag the handle or use the labelled range input to wipe between two layouts across the full width.

src/registry/premium/before-after-wipe.tsx/r/before-after-wipe.json

Generic dashboard

Redesigned

Wipe

Installation#

bash
npx shadcn@latest add @minidev/before-after-wipe

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/before-after-wipe.json

Usage#

tsx
import { BeforeAfterWipe } from "@/components/ui/before-after-wipe"

export function Example() {
  return (
    <BeforeAfterWipe />
  )
}

API reference#

BeforeAfterWipe props
PropTypeDefault
beforeLabelstring"Generic dashboard"
afterLabelstring"Redesigned"
classNamestring-

Examples#

All media and upload components