lazymage

0.0.0 • Public • Published

Lazymage

Lazy load images from your React components. Get nice loading states and avoid high network usage when loading images.

Installation

# Bun
bun add lazymage

# PNPM
pnpm add lazymage

# NPM
npm install lazymage

LazyImage usage

import { LazyImage } from 'lazymage';

export const ComponentWithImage = () => (
  <div className="flex flex-col gap-4">
    <LazyImage
      src="https://example.com/image.jpg"
      alt="A beautiful image"
      effect="blur"
      // ...any other image attributes
    />
    {/* 
      ...more components
    */}
  </div>
);

Package Sidebar

Install

npm i lazymage

Weekly Downloads

0

Version

0.0.0

License

MIT

Unpacked Size

57.2 kB

Total Files

24

Last publish

Collaborators

  • pulgueta