@urami/react
Version:
Automatic image optimization component for React
14 lines (11 loc) • 416 B
TypeScript
import * as react from 'react';
import { ImgHTMLAttributes } from 'react';
import { Loader } from '@urami/types';
interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
src: string;
width: number;
quality?: number;
loader?: Loader;
}
declare const Image: react.ForwardRefExoticComponent<ImageProps & react.RefAttributes<HTMLImageElement>>;
export { type ImageProps, Image as default };