@types/react-inner-image-zoom
TypeScript icon, indicating that this package has built-in type declarations

3.0.3 • Public • Published

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.

index.d.ts

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-inner-image-zoom

Weekly Downloads

11,125

Version

3.0.3

License

MIT

Unpacked Size

4.76 kB

Total Files

5

Last publish

Collaborators

  • types