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/v2.
import * as React from 'react';
export interface InnerImageZoomProps {
moveType?: 'pan' | 'drag' | undefined;
zoomType?: 'click' | 'hover' | undefined;
src: string;
srcSet?: string | undefined;
sizes?: string | undefined;
sources?: Array<{ srcSet?: string | undefined, media?: string | undefined }> | undefined;
width?: number | undefined;
height?: number | undefined;
hasSpacer?: boolean | undefined;
zoomSrc?: string | undefined;
zoomScale?: number | undefined;
zoomPreload?: boolean | undefined;
alt?: string | 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, 01 Mar 2022 23:31:49 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Lauren Ashpole.