mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Added type definitions for react-medium-image-zoom * fixes for react-medium-image-zoom * fixes for react-medium-image-zoom
24 lines
741 B
TypeScript
24 lines
741 B
TypeScript
import * as React from "react";
|
|
import ImageZoom from "react-medium-image-zoom";
|
|
|
|
const component: React.FC = () => {
|
|
return (
|
|
<div>
|
|
<ImageZoom
|
|
image={{
|
|
src: "https://raw.githubusercontent.com/rpearce/react-medium-image-zoom/master/docs/bridge.jpg",
|
|
alt: "Golden Gate Bridge",
|
|
className: "img"
|
|
}}
|
|
zoomImage={{
|
|
src: "https://raw.githubusercontent.com/rpearce/react-medium-image-zoom/master/docs/bridge-big.jpg",
|
|
alt: "Golden Gate Bridge",
|
|
className: "img--zoomed"
|
|
}}
|
|
/>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default component;
|