Socket
Book a DemoInstallSign in
Socket

@impactdk/react-image

Package Overview
Dependencies
Maintainers
6
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@impactdk/react-image

Image component that handles lazy loading via intersection observer (remember to polyfill for IE11). Also features IE11 fallback functionality for `object-fit` + `object-position`.

latest
npmnpm
Version
1.0.2
Version published
Maintainers
6
Created
Source

@impactdk/react-image

Image component that handles lazy loading via intersection observer (remember to polyfill for IE11). Also features IE11 fallback functionality for object-fit + object-position.

Installation

npm install --save @impactdk/react-image

Using the module

import Image from "@impactdk/react-image";

export const App = () => (
    <Image src="/path/to/image" objectFit="cover" lazy={true} />
);

FAQs

Package last updated on 17 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts