Description
react-imgix is a set of React components for showing images served through imgix. You pass it an imgix image and it renders a responsive img, picture or background element, building the srcset and sizes attributes so the browser can pick a suitable size for each screen. It supports flexible layouts that fill their container and fixed-size images, and it can render images on the server during server-side rendering. Other features include lazy loading, a low-quality image placeholder technique, custom HTML attributes, and an ImgixProvider component that sets global configuration once for the whole app. The package is published on npm and the docs show installation with npm or yarn. The guide links to articles on srcset, sizes and art direction for responsive images. The upgrade guides cover the 7.x to 8.0 and 8.x to 9.0 releases. The source is public on GitHub under the imgix organization. It is aimed at React developers who already use imgix and want responsive images without writing srcset markup by hand.…
Highlights
- Responsive img, picture and background rendering
- Flexible and fixed-size image layouts
- Server-side rendering support
- Lazy loading and low-quality image placeholders
- Global configuration through a provider component
Ratings & Reviews
No ratings yet
Be the first to rate react-imgix.
People also visit
react-imgix FAQ
What is react-imgix?
It is a set of React components that display imgix images as responsive img, picture or background elements, with srcset and sizes handled for you.
How do I install it?
Install it from npm with npm install react-imgix, or with yarn add react-imgix.
Does it work with server-side rendering?
Yes. The docs include a server-side rendering example, so images can be rendered on the server.
Where is the source code?
The code is public on GitHub at github.com/imgix/react-imgix, and the repository includes upgrade guides for the 7.x to 8.0 and 8.x to 9.0 releases.
What are the best react-imgix alternatives?
Popular alternatives to react-imgix include react-photo-album, react-lazy-load-image-component and react-image-gallery. See all react-imgix alternatives






















