🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

next-progressive-image

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-progressive-image

A React component for progressive image loading with a low-res blur effect.

1.0.5
latest
npm
Version published
Weekly downloads
1
-50%
Maintainers
0
Weekly downloads
 
Created
Source

next-progressive-image

A lightweight React component for progressive image loading, designed for Next.js projects. This component initially displays a low-resolution blurred image, then swaps it with a high-resolution image once it's fully loaded, improving user experience and performance.

Installation

To install the package, use npm or yarn:

npm install next-progressive-image

Example

import React from "react";
import ProgressiveImage from "your-package-name";

function App() {
  return (
    <div>
      <ProgressiveImage
        lowResSrc="path/to/low-res-image.jpg"
        highResSrc="path/to/high-res-image.jpg"
        alt="A beautiful scenery"
        width="500px"
        height="300px"
      />
    </div>
  );
}

export default App;

Keywords

react

FAQs

Package last updated on 01 Nov 2024

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