Image compare
CoreDrag a divider across two images to see what changed.
pnpm dlx shadcn@latest add https://wui.alann.works/r/image-compare.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
before* | ReactNode | required |
after* | ReactNode | required |
position | number | — |
defaultPosition | number | — |
onPositionChange | (position: number) => void | — |
orientation | "horizontal" | "vertical" | — |
labels | [string, string] | false | — |
label | string | — |
aspectRatio | string | — |
className | string | — |