JSPM

  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q46372F
  • License ISC

A fully functional & comprehensive suite of customizable and visually appealing loaders designed to enhance your web applications.

Package Exports

  • loaders-ui
  • loaders-ui/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (loaders-ui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Loaders Package

A fully functional & comprehensive suite of customizable and visually appealing loaders designed to enhance your web applications.

Loaders Available

  1. Infinite
  2. Gooey
  3. BouncingBalls
  4. BouncingSquares
  5. Circle
  6. ColorFullSpinner
  7. DoubleBounce
  8. DoubleRing
  9. ExpandingCircle
  10. ExpandingRing
  11. FlashSquares
  12. FlashingDots
  13. FlashingSquares
  14. FoldingCube
  15. MorphSquare
  16. PulsatingCircle
  17. PulsatingCrosses
  18. PulsatingHexagon
  19. PulsatingRectangles
  20. PulsatingRings
  21. PulsatingSquare
  22. RollingSquares
  23. RotatingBars
  24. RotatingDots
  25. RotatingPlane
  26. ScalingSquares
  27. SkewedSquares
  28. SlidingBars
  29. SlidingLines
  30. SlidingSquares
  31. Spinner
  32. SpinnerHalf
  33. SpinnerRing
  34. WanderingCubes
  35. ZigZagLine

Installation

To install the package, run:

npm install loaders-ui

Usage

Simple Spinner

import React from 'react';
import "loaders-ui/dist/main/index.min.css";
import { Spinner } from 'loaders-ui';

const App = () => (
  <div>
    <Spinner />
  </div>
);

export default App;

Common Props

All loaders can accept the following common props:

  • width (string | number): Define the size of the loader.
  • color (string): Define the primary color of the loader. Default is #3498db.
  • className (string): Add custom class names for styling.

Specific Props

ColorFullSpinner

  • colors [string, string, string, string]: Define the four colors of the spinner's stroke.
  • color : is not valid in this case.

DoubleRing

  • width (number): Define the size of the loader.

ExpandingRing

  • borderWidth (number): Define the border-width of ring.

RotatingDots

  • dotsSize (number | string): Define the size of the dots.

Spinner

  • dullColor (string): Define the stroke (of complete circle) color.
  • borderWidth (number | string): Define the stroke width.

SpinnerHalf ,

SpinnerRing

  • borderWidth (number | string): Define the stroke width.

ZigZagLine

  • maxWidth (number | string): Define the max width of where line can be moved.
  • height (number | string): Define the height of the line.

Keywords

  • loaders
  • react-loaders
  • spinner
  • loading-indicator
  • bouncing-squares
  • circular-spinner
  • pulsing-dot
  • rotating-cube

License

This project is licensed under the MIT License.