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';
zoomType?: 'click' | 'hover';
src: string;
srcSet?: string;
sizes?: string;
sources?: Array<{ srcSet?: string, media?: string }>;
width?: number;
height?: number;
hasSpacer?: boolean;
zoomSrc?: string;
zoomScale?: number;
zoomPreload?: boolean;
alt?: string;
fadeDuration?: number;
fullscreenOnMobile?: boolean;
mobileBreakpoint?: number;
hideCloseButton?: boolean;
hideHint?: boolean;
className?: string;
afterZoomIn?: () => void;
afterZoomOut?: () => void;
}
export class InnerImageZoom extends React.Component<InnerImageZoomProps> {}
export default InnerImageZoom;
Additional Details
- Last updated: Fri, 11 Jun 2021 17:31:19 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Lauren Ashpole.