jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
38 lines (37 loc) • 771 B
TypeScript
/**
* @file index.tsx
*
* @fileoverview Renders and image with some predefined properties like sizes and lazy loading.
*/
/// <reference types="react" />
export interface ImageProps {
/**
* The image source.
*/
src: string;
/**
* The image width.
*/
width?: string;
/**
* The image height.
*/
height?: string;
/**
* If the image should be lazy loaded.
*/
lazy?: boolean;
/**
* The image alt attribute
*/
alt: string;
/**
* The image title.
*/
title?: string;
}
/**
* Displays an image with optional lazy loading and size attributes.
*/
export declare const Image: ({ src, width, height, lazy, alt, title }: ImageProps) => JSX.Element;
export default Image;