UNPKG

tdesign-react

Version:
16 lines (15 loc) 677 B
import React, { MouseEvent } from 'react'; import { TdImageProps } from './type'; import { StyledProps } from '../common'; export declare function isImageValid(src: string): Promise<unknown>; export type ImageProps = TdImageProps & StyledProps & { onClick?: (e: MouseEvent<HTMLDivElement>) => void; onMouseDown?: (e: MouseEvent<HTMLDivElement>) => void; draggable?: boolean; }; declare const Image: React.ForwardRefExoticComponent<TdImageProps & StyledProps & { onClick?: (e: MouseEvent<HTMLDivElement>) => void; onMouseDown?: (e: MouseEvent<HTMLDivElement>) => void; draggable?: boolean; } & React.RefAttributes<HTMLDivElement>>; export default Image;