0.0.5 • Published 2 months ago

@snivio/react-image-loader v0.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

React Image Loader

This Component Makes lazy loading images a breeze with both loading element and error element by taking care of loading and error handling within the element

Usage of Component

  • Props
PropsDescription
loaderLoading element
errorerror element
childrenreact child element
import { ImageLoader } from "./components";

function App() {
  const src = "https://placehold.co/600x400";
  return (
    <>
      <ImageLoader loader={"Loading"} src={src} error={"Error has occurred"}>
        <img src={src} />
      </ImageLoader>
    </>
  );
}

export default App;
0.0.5

2 months ago

0.0.4

2 months ago

0.0.3

2 months ago

0.0.2

2 months ago

0.0.1

2 months ago

0.0.0

2 months ago