Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-progressive-image

> 编程语言
Open source

React component for progressive image loading

725 stars0 likes1 views
WebsiteGitHub

About

React component for progressive image loading

React Progressive Image

Maintenance Status

react-progressive-image React component for progressive image loading

Install

bash
$ yarn add react-progressive-image

The UMD build is also available on unpkg:

xml

If you use the UMD build you can find the library on window.ReactProgressiveImage.

Examples

Simple

javascript

  {src => }

With Delay

javascript

  {src => }

With loading argument

javascript

  {(src, loading) => (
    
  )}

With srcSet

javascript

  {(src, _loading, srcSetData) => (
    
  )}

Component As Placeholder

If you want to use a component, such as a loading spinner, as a placeholder, you can make use of the loading argument in the render callback. It will be true while the main image is loading and false once it has fully loaded. Keep in mind that the placeholder props is required, so you will need to explicitly declare an empty string as it's value if you plan on using a component in the render callback.

javascript
const dominantImageColor = '#86356B';
const placeholder = (
  

    );
  }}

Props

Name Type Required Description
children function true returns src, loading, and srcSetData
delay number false time in milliseconds before src image is loaded
onError function false returns error event
placeholder string true the src of the placeholder image
src string true the src of the main image
srcSetData {srcSet: "string", sizes: "string" } false srcset and sizes to be applied to the image

Maintenance Status

Archived: This project is no longer maintained by Formidable. We are no longer responding to issues or pull requests unless they relate to security concerns. We encourage interested developers to fork this project and make it their own!

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言