@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
19 lines (18 loc) • 625 B
TypeScript
/**
* HTML Element
*
*/
import React from 'react';
import type { DynamicElement, SpacingProps } from '../../shared/types';
import type { SkeletonShow } from '../../components/skeleton/Skeleton';
export type ImgProps = SpacingProps & React.HTMLProps<HTMLImageElement> & {
src: string;
alt: string;
skeleton?: SkeletonShow;
imgClass?: string;
element?: DynamicElement & 'figure';
caption?: string;
loading?: 'eager' | 'lazy';
};
declare const Img: ({ caption, alt, element, skeleton, imgClass, className, loading, ...p }: ImgProps) => import("react/jsx-runtime").JSX.Element;
export default Img;