2.0.2 • Published 3 years ago

asteroid-loading-spinner v2.0.2

Weekly downloads
16
License
MIT
Repository
github
Last release
3 years ago

Asteroid Loading Spinner

This is React component which has a small, simple loading indicator displaying a moving asteroid. It is created with a svg and a little bit of css animation magic.

In order to use this package, you need to install react and react-dom to your project.

Installation

Install the package:

npm install --save asteroid-loading-spinner

then, import the package to the desired file:

import AsteroidLoadingSpinner from 'asteroid-loading-spinner'

Props v2

NameOptionalDescriptionDefault value
asteroidColor:heavy_check_mark:Color of the asteroid"#ea7317"
lineColor:heavy_check_mark:Color of the lines "currentColor"

Props v1

NameOptionalDescriptionDefault value
circleClassName:heavy_check_mark:Class name to override the colors of the asteroid (the circles)"circle"
lineClassName:heavy_check_mark:Class name to override the colors for the lines that indicate that the asteroid is moving "line"

Example Usage

import AsteroidLoadingSpinner from 'asteroid-loading-spinner'

const App = () => (
  <AsteroidLoadingSpinner circleClassName="class-name" />
)
2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago