@onesy/ui-react
Version:
UI for React
28 lines (27 loc) • 870 B
TypeScript
import React from 'react';
import { IUseVisible } from '../useVisible/useVisible';
import { IBaseElement, IPropsAny } from '../types';
export declare type IImage = IBaseElement & {
src?: string;
url?: string;
urlSmall?: string;
sources?: Array<string>;
alt?: string;
description?: string;
alignDescription?: 'start' | 'left' | 'center' | 'right' | 'end';
width?: number;
height?: number;
lazyLoad?: boolean;
align?: 'start' | 'left' | 'center' | 'right' | 'end';
responsive?: boolean;
fullWidth?: boolean;
maxWidth?: 'xxs' | 'xs' | 'sm' | 'rg' | 'lg' | 'xl' | 'unset';
loading?: 'eager' | 'lazy';
IconNoImage?: any;
RootProps?: IPropsAny;
NoImageProps?: IPropsAny;
DescriptionProps?: IPropsAny;
UseVisibleProps?: IUseVisible;
};
declare const Image: React.FC<IImage>;
export default Image;