UNPKG

quarkd

Version:

Mobile UI Components built on Web Components.

39 lines (38 loc) 1.02 kB
import { QuarkElement } from "quarkc"; declare type FitType = "fill" | "contain" | "cover" | "none" | "scale-down"; declare type Stauts = "loading" | "loaded" | "error"; declare type LazyLoadType = { add: (el: HTMLImageElement, src: string, parent?: ParentNode | null) => void; }; export interface Props { width?: number | string; height?: number | string; fit?: FitType; lazy?: boolean; round?: boolean; radius?: number | string; alt?: string; src: string; } export interface CustomEvent { load?: () => void; error?: () => void; } declare class QuarkImage extends QuarkElement { src: string; lazy: boolean; alt: string; width: number | string; height: number | string; round: boolean; fit: FitType; radius: number | string; lazyTarget: LazyLoadType; status: Stauts; imgRef: HTMLImageElement | null; handleLoad: () => void; handleError: () => void; componentDidMount(): void; render(): any; } export default QuarkImage;