UNPKG

image-zoomer-react

Version:

A simple image zoomer component for React

10 lines (9 loc) 509 B
type ImageZoomBaseProps = { textMessage?: string; textBoxStyle?: React.CSSProperties; } & React.ImgHTMLAttributes<HTMLImageElement>; type ImageZoomProps<TAs extends React.ElementType = "img"> = ImageZoomBaseProps & { as?: TAs; } & Omit<React.ComponentPropsWithRef<TAs>, keyof ImageZoomBaseProps>; declare function ImageZoom<TAs extends React.ElementType = "img">({ as, textMessage, textBoxStyle, ...props }: ImageZoomProps<TAs>): import("react/jsx-runtime").JSX.Element; export default ImageZoom;