
Description
react-content-loader is an SVG-based React component for building placeholder loading screens, the grey shapes that stand in for text and images while content loads, like Facebook's card loaders. You describe the shape of your content with rectangles and circles, and the component draws them with an animated shimmer. It ships with a set of presets to start from, and a custom mode for building your own layout. There is also an online tool, create-content-loader, that helps you draw a loader and copy its code. The component is customisable: you can change colours, speed, sizes and right-to-left layout. It works on the web and in React Native with the same API, where SVG shapes come from react-native-svg or from named Rect and Circle exports. You can opt out of animation, set a title for screen readers, and pass a viewBox to control scaling. The project says the web version is under 2 kB and has no dependencies. The README includes install instructions, usage examples, an options table, troubleshooting notes and a list of similar packages. Examples and a working sandbox are linked from the documentation.…
Highlights
- Skeleton loaders drawn in SVG
- Presets and a custom mode
- Online tool to design a loader
- React Native support with the same API
- Under 2 kB with no dependencies for the web
- Colours, speed, sizes and RTL options
Ratings & Reviews
No ratings yet
Be the first to rate react-content-loader.
People also visit

react-loading-icons
React implementation of the SVG Loaders library by Sam Herbert
react-content-loader FAQ
What is react-content-loader?
A React component that draws placeholder loading shapes in SVG, with a shimmer animation, to stand in for content while it loads.
Does it work with React Native?
Yes. It uses the same API, and the README says SVG shapes come from react-native-svg or from the Rect and Circle exports.
How do I make a custom loader?
Use the custom mode, or the create-content-loader tool, which lets you draw the layout and copy the code.
Can I turn off the animation?
Yes. The animate prop defaults to true, and setting it to false opts out.
How big is it?
The README says the web version is under 2 kB with no dependencies.
Where can I see examples?
The README links examples, a working sandbox and an editable demo, along with a troubleshooting section.
What are the best react-content-loader alternatives?
Popular alternatives to react-content-loader include react-loading, react-placeholder and react-loading-icons. See all react-content-loader alternatives














