UNPKG

kawkab-frontend

Version:

Kawkab frontend is a frontend library for the Kawkab framework

28 lines (27 loc) 802 B
import React from 'react'; type LoaderFunc = (src: string, width: number, quality: number) => string; type Placeholder = 'blur' | 'empty'; type ImageProps = { src: string; alt: string; width?: number; height?: number; layout?: 'intrinsic' | 'fixed' | 'fill' | 'responsive'; objectFit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down'; objectPosition?: string; className?: string; style?: React.CSSProperties; placeholder?: Placeholder; blurDataURL?: string; priority?: boolean; loading?: 'lazy' | 'eager'; onLoad?: () => void; onError?: () => void; quality?: number; sizes?: string; generateSrcSet?: boolean; loader?: LoaderFunc; unoptimized?: boolean; }; export declare const Image: React.FC<ImageProps>; export {};