
Description
React Spinners is a collection of loading spinner components for React, based on Halogen. Each loader has its own default properties, and you override them by passing props. Each loader takes a loading prop, and it renders nothing when loading is false. All valid HTML props, including aria and data attributes, are supported. The color prop accepts a hex value such as #XXX or #XXXXXX, or one of the basic named colours such as maroon, teal or navy. The size, height, width and radius props accept numbers or CSS strings, and a number is treated as pixels. The cssOverride prop takes an object of camelCase styles for inline styling. The README lists the defaults for each loader, including the size, height, width, radius and margin, for loaders such as BarLoader, BeatLoader, ClipLoader, MoonLoader, PulseLoader, RingLoader and ScaleLoader. A demo page and a Storybook are provided. The package is installed from npm with Yarn or npm, and the source is on GitHub.…
Highlights
- A collection of React loading spinners
- Colour, size and CSS set per loader
- Passes through aria and data props
- Installable from npm
Ratings & Reviews
No ratings yet
Be the first to rate react-spinners.
People also visit
react-spinners FAQ
What is React Spinners?
A collection of loading spinner components for React, based on Halogen.
How do I show or hide a spinner?
Pass a loading boolean. The loader renders nothing when loading is false.
How do I change the colour?
Pass a hex colour such as #XXX or #XXXXXX, or one of the basic named colours.
Can I override the styles?
Yes. The cssOverride prop takes camelCase styles for inline styling, and size, height, width and radius accept numbers or CSS values.
How do I install it?
Install the react-spinners package from npm with Yarn or npm.
Does it support accessibility attributes?
Yes. All valid HTML props are supported, including aria and data attributes.
What are the best react-spinners alternatives?
Popular alternatives to react-spinners include react-loader-spinner, react-loading and react-loader-spinner. See all react-spinners alternatives












