UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

38 lines (37 loc) 771 B
/** * @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;