UNPKG

generic-zoom-react

Version:

React wrapper of generic-zoom. Medium zoom like functionality, but only transforming the container element. Suited for children that adjust automatically depending on the parent element such as gatsby-image.

7 lines (6 loc) 221 B
import { RefObject } from 'react'; export interface IZoomContext { isZoomed: boolean; outerElemRef?: RefObject<HTMLElement> | null; } export declare const ZoomContext: import("react").Context<IZoomContext>;