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.

9 lines (8 loc) 236 B
import React, { RefObject } from 'react'; interface IProps { children: any; isZoomed: boolean; outerElemRef?: RefObject<HTMLElement> | null; } declare const GenericZoom: React.FC<IProps>; export default GenericZoom;