0.1.0 • Published 12 months ago

@deadpoolx7/react-smart-image v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

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.

0.1.0

12 months ago