Skip to content

DeadpoolX7/react-smart-image

Repository files navigation

react-smart-image

A lightweight React component for responsive, lazy-loaded images with WebP and fallback support.

Installation

npm install @deadpoolx7/react-smart-image

Usage

import { SmartImage } from 'react-smart-image';

<SmartImage
  src="image.jpg"
  srcWebp="image.webp" 
  alt="A smart image"
/>

By deafult it loads image Lazily.

About

npm package to lazy load image with webP and fallback support.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published