react-spinner

WebJar for react-spinner

License

License

MIT
Categories

Categories

React User Interface Web Frameworks
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

react-spinner
Last Version

Last Version

0.2.7
Release Date

Release Date

Type

Type

jar
Description

Description

react-spinner
WebJar for react-spinner
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/chenglou/react-spinner

Download react-spinner

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/react-spinner/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>react-spinner</artifactId>
    <version>0.2.7</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/react-spinner/
implementation 'org.webjars.npm:react-spinner:0.2.7'
// https://jarcasting.com/artifacts/org.webjars.npm/react-spinner/
implementation ("org.webjars.npm:react-spinner:0.2.7")
'org.webjars.npm:react-spinner:jar:0.2.7'
<dependency org="org.webjars.npm" name="react-spinner" rev="0.2.7">
  <artifact name="react-spinner" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='react-spinner', version='0.2.7')
)
libraryDependencies += "org.webjars.npm" % "react-spinner" % "0.2.7"
[org.webjars.npm/react-spinner "0.2.7"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

React-spinner

Zero configuration loading spinner.

Live demo from the example folder. (To build it locally, clone this repo, npm install && npm start then open http://localhost:3000/example/)

install

Bower:

bower install react-spinner

Npm:

npm install react-spinner

Plain old script tag:

<script src="path/to/react-spinner/build/index.js"></script>

(Compatible with CommonJS, e.g. Browserify.)

The CSS file:

<link rel="stylesheet" type="text/css" href="path/to/react-spinner.css">

The spinner

API

<Spinner />

Adds the spinner, which centers itself based on its container's dimensions. If those are not predefined, simply manually center it by adding more style rules to the exposed .react-spinner class here.

You can also override the .react-spinner's width and height if you want a bigger or smaller spinner. Everything resizes correctly.

License

MIT.

Versions

Version
0.2.7