3.0.3 • Published 6 months ago

@types/react-inner-image-zoom v3.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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.

index.d.ts

// Type definitions for react-inner-image-zoom 2.0
// Project: https://github.com/laurenashpole/react-inner-image-zoom#readme
// Definitions by: Lauren Ashpole <https://github.com/laurenashpole>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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.

2.0.3

8 months ago

3.0.3

6 months ago

2.0.5

6 months ago

3.0.2

7 months ago

2.0.4

7 months ago

3.0.1

8 months ago

2.0.2

2 years ago

3.0.0

2 years ago

2.0.1

3 years ago

2.0.0

3 years ago