rsuite
Version:
A suite of react components
17 lines (16 loc) • 364 B
TypeScript
interface UseImageProps {
src?: string;
fallbackSrc?: string;
crossOrigin?: string;
srcSet?: string;
sizes?: string;
loading?: 'lazy' | 'eager';
}
export declare const useImage: (props: UseImageProps) => {
imgSrc: string | null;
isLoading: boolean;
error: boolean;
onLoad: () => void;
onError: () => void;
};
export {};