Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

464 B
Raw Blame
"use client";

import Zoom from "react-medium-image-zoom";
import "react-medium-image-zoom/dist/styles.css";

export function ZoomImage(
  props: React.DetailedHTMLProps<
    React.ImgHTMLAttributes<HTMLImageElement>,
    HTMLImageElement
  >,
) {
  return (
    <Zoom
      zoomMargin={45}
      zoomImg={{ ...props, className: "rounded-lg border border-gray-200" }}
    >
      <img {...props} className="rounded-lg border border-gray-200" />
    </Zoom>
  );
}