MCPcopy Create free account
hub / github.com/DTStack/dt-react-component / IProps

Interface IProps

src/image/index.tsx:6–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4import useIntersectionObserver from '../useIntersectionObserver';
5
6interface IProps {
7 src: string;
8 lazy?: boolean;
9 alt?: string;
10 className?: string;
11 style?: CSSProperties;
12 width?: number;
13 height?: number;
14 loader?: JSX.Element | null;
15}
16
17function loadImage(src: string) {
18 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected