You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

nextjs-custom-image-client

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nextjs-custom-image-client

Custom Image component for Next.js with loading skeleton and error handling

1.0.2
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

nextjs-custom-image-client

A custom Image component for Next.js that includes skeleton loading and error handling.

Installation

npm install nextjs-custom-image-client

Usage

import Image from 'nextjs-custom-image-client';

function MyComponent() {
  return (
    <Image
      src="/path/to/image.jpg"
      alt="My image"
      srcNoImage="/path/to/fallback.jpg"
    />
  );
}

Props

  • src: URL of the main image
  • srcNoImage: URL of the fallback image
  • objectFit: CSS object-fit property
  • All props supported by next/image

License

MIT

Keywords

nextjs

FAQs

Package last updated on 09 Jul 2025

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