CompareSlider
Before/after image compare.
Loading…
Before/after image compare.
Loading…
Before/after image comparison with draggable divider.
| Prop | Type | Default | Description |
|---|---|---|---|
| beforeSrc | string | — | Before image URL. |
| afterSrc | string | — | After image URL. |
| position | number | — | Divider position 0–100. |
| onPositionChange | (pos: number) => void | — | Position change handler. |
| className | string | — | Optional CSS class. |
Also copy lib/utils.ts (cn helper):