UNPKG

@vnmfify/core

Version:

```shell npm i @vnmfify/core -S ```

17 lines (16 loc) 533 B
import { StandardProps } from "@vnxjs/components/types/common"; import { ReactNode } from "react"; import { ImageMode, ImageShape } from "./image.shared"; export interface ImageProps extends StandardProps { src?: string; alt?: string; mode?: ImageMode; round?: boolean; shape?: ImageShape; lazyLoad?: boolean; placeholder?: boolean | ReactNode; fallback?: boolean | ReactNode; onLoad?(): void; onError?(): void; } export default function Image(props: ImageProps): JSX.Element;