Installation
npm install --save @types/react-inner-image-zoom
Summary
This package contains type definitions for react-inner-image-zoom (https://github.com/laurenashpole/react-inner-image-zoom#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-inner-image-zoom.
import * as React from "react";
export interface InnerImageZoomProps {
moveType?: "pan" | "drag" | undefined;
zoomType?: "click" | "hover" | undefined;
src: string;
sources?: Array<{ srcSet?: string | undefined; media?: string | undefined }> | undefined;
width?: number | undefined;
height?: number | undefined;
hasSpacer?: boolean | undefined;
imgAttributes?: React.ImgHTMLAttributes<HTMLImageElement> | undefined;
zoomSrc?: string | undefined;
zoomScale?: number | undefined;
zoomPreload?: boolean | undefined;
fadeDuration?: number | undefined;
fullscreenOnMobile?: boolean | undefined;
mobileBreakpoint?: number | undefined;
hideCloseButton?: boolean | undefined;
hideHint?: boolean | undefined;
className?: string | undefined;
afterZoomIn?: (() => void) | undefined;
afterZoomOut?: (() => void) | undefined;
}
export class InnerImageZoom extends React.Component<InnerImageZoomProps> {}
export default InnerImageZoom;
Additional Details
- Last updated: Tue, 07 Nov 2023 20:08:00 GMT
- Dependencies: @types/react
Credits
These definitions were written by Lauren Ashpole.