nextjs-custom-image-client
v1.0.2
Published
Custom Image component for Next.js with loading skeleton and error handling
Maintainers
Readme
nextjs-custom-image-client
A custom Image component for Next.js that includes skeleton loading and error handling.
Installation
npm install nextjs-custom-image-clientUsage
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 imagesrcNoImage: URL of the fallback imageobjectFit: CSS object-fit property- All props supported by next/image
License
MIT
