@impactdk/react-image
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@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} />
);

Readme

Keywords

none

Package Sidebar

Install

npm i @impactdk/react-image

Weekly Downloads

0

Version

1.0.2

License

none

Unpacked Size

21.3 kB

Total Files

9

Last publish

Collaborators

  • impact_lyk
  • matpeder
  • woodsboe
  • hartoeft
  • impactdkmac
  • tccimpact