@mornya/react-image-libs
Version:
The project of React.js Image library.
14 lines (13 loc) • 594 B
TypeScript
import React from 'react';
import type { LazyImageProps } from './hooks';
export type LazyImageComponentProps = LazyImageProps & {
width?: string | number;
height?: string | number;
fit?: React.CSSProperties['objectFit'];
onMouseOver?: React.MouseEventHandler<HTMLSpanElement>;
onMouseLeave?: React.MouseEventHandler<HTMLSpanElement>;
onFocus?: React.FocusEventHandler<HTMLSpanElement>;
onBlur?: React.FocusEventHandler<HTMLSpanElement>;
onClick?: React.MouseEventHandler<HTMLButtonElement>;
};
export declare const LazyImage: React.FC<LazyImageComponentProps>;