GithubHelp home page GithubHelp logo

sysix / react-loader-spinner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mhnpd/react-loader-spinner

0.0 1.0 0.0 10.89 MB

Collection set of react-spinner for async operation

Home Page: https://mhnpd.github.io/react-loader-spinner/

License: MIT License

JavaScript 0.75% CSS 6.98% TypeScript 92.27%

react-loader-spinner's Introduction

Node.js Package release tag stars issue open-issues commits commits

title

react-spinner-loader provides simple React SVG spinner component which can be implemented for async await operation before data loads to the view.

Installation

Using NPM:

$ npm install react-loader-spinner --save
Using yarn

$ yarn add react-loader-spinner

Documentation:

DEMO

Code SandBox:

https://codesandbox.io/s/react-loader-spinner-weqls?file=/src/App.js

Usage

Import required css

Import the css to main app.js file

import "react-loader-spinner/dist/loader/css/react-spinner-loader.css";
import { Audio } from  'react-loader-spinner'


<Audio
    height="100"
    width="100"
    color='grey'
    ariaLabel='loading'
  />

If webpack throws issue with css. (For older version of this package)

Change webpack config as: test: /\.scss$/ to test: /\.s?css$/

Newer version just import css file from node modules to app.js

Types of Spinner

react-loader-spinner component has the following types of spinners.

Spinner Type Implementation
Audio <Audio color="#00BFFF" height={80} width={80} />
BallTriangle <BallTriangle color="#00BFFF" height={80} width={80} />
Bars <Bars color="#00BFFF" height={80} width={80} />
Circles <Circles color="#00BFFF" height={80} width={80}/>
Grid <Grid color="#00BFFF" height={80} width={80} />
Hearts <Hearts color="#00BFFF" height={80} width={80} />
Oval <Oval color="#00BFFF" height={80} width={80} />
Puff <Puff color="#00BFFF" height={80} width={80} />
Rings <Rings color="#00BFFF" height={80} width={80} />
TailSpin <TailSpin color="#00BFFF" height={80} width={80} />
ThreeDots <ThreeDots color="#00BFFF" height={80} width={80} />

alt text

Here are the list of the task for which we want PR:

  • Rings spinner is not supported in Safari

License

MIT

react-loader-spinner's People

Contributors

ahmadkarlam avatar aknuds1 avatar andrecrts avatar aodhanhayter avatar benjaminsuch avatar blakeyoder avatar brannanc avatar dependabot[bot] avatar fe-olaf avatar geewoo94 avatar geoffselby avatar hariananthan avatar hashans avatar jackhellyerfp avatar jamesdfrearson avatar joostvanvelthoven avatar kingingcole avatar krtirtho avatar mhnpd avatar nonalloc avatar ridergoster avatar samstr avatar shakti97 avatar sherakama avatar sysix avatar timwright12 avatar tomduckering avatar utecht avatar wooferzfg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.