
Description
react-loading-icons is a React library of loading spinners, a TypeScript edition of Sam Herbert's SVG Loaders collection. The loaders are pure SVG with no dependencies, and the package is built with React 17 and TypeScript. You can import all the loaders under one namespace, import a single loader, or copy one compiled file from the dist components folder into your project so you do not import the whole package. Each loader accepts any SVG presentation attribute and any JSX prop, such as key or onClick. The speed prop controls the animation, where 1 is full speed, 0.5 is half speed and 2 is double speed. The components inherit fill, fill opacity, stroke and stroke width, so you can control those from the outside. The package also works with plain JavaScript and supports ESM tree shaking. A demo is linked from the README, and the source is public on GitHub.…
Highlights
- Pure SVG loaders with zero dependencies
- Speed prop controls animation speed
- Import all loaders, one loader, or a single file
- Inherits fill and stroke styling
- Works with TypeScript and JavaScript
Ratings & Reviews
No ratings yet
Be the first to rate react-loading-icons.
People also visit
react-loading-icons FAQ
What is react-loading-icons?
A React library of SVG loading spinners, adapted from Sam Herbert's SVG Loaders and written in TypeScript.
How do I install it?
Install it from npm, as the README's install section describes, then import all the loaders or a single one.
Can I import just one loader?
Yes. The README shows importing a single loader, and says you can copy one compiled .js file from dist/components into your project.
How do I change the speed?
Set the speed prop. 1 means 100 percent speed, 0.5 means 50 percent and 2 means 200 percent.
Is it open source?
Yes. The source code is public on GitHub.
What are the best react-loading-icons alternatives?
Popular alternatives to react-loading-icons include react-loading, react-spinners and react-loader-spinner. See all react-loading-icons alternatives














