npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

elfen-component-spinner

v0.0.4

Published

react components for loader or spinner

Readme

Respinner

npm-download npm-version license

react components for spinners or loaders. Each loader was combined css animation and render dom as svg. easily controlled by react porps.

You could change the count of spinner's children by props count, also the color of themselves. All of them built with SVG, so you can easily scale them with width and height.

Examples

demo

See more details in demo directory or visit website: huozhi.github.io/respinner/

Usage

npm install --save respinner

Yet 7 kinds of loaders supported, just import it when use with react. Any suggestions on issues.

import React, {Component} from 'react'
// easily import from entry
import {
  BeatLoading, BounceLoading, CircularLoading,
  ClockLoading, RotateLoading, SpinLoading,
  WaveLoading, DashLoading, CopperLoading
} from 'respinner'
// or import single spinner directly, smaller size if your code don't have tree shaking
import SpinLoading from 'respinner/lib/spin'

class LoadingComponents extends Component {  
  render() {
    <div className="spinners">
      <SpinLoading fill="#777" borderRadius={4} count={12} /> // use with customized props
      <CircularLoading /> // or just use with default props
    </div>
  }
}

Dist directory

lib
├── beat.js
├── bounce.js
├── circular.js
├── clock.js
├── dash.js
├── index.js
├── rotate.js
├── spin.js
├── copper.js
└── wave.js

API

Common Props

  • className
  • width
  • height
  • stroke/fill (stroke for circle ones, fill for rectangle ones)

1. BeatLoading

  • gap: default 6
  • size: default 8
  • count: default 6
  • duration: default 0.8

2. CircularLoading

  • size: default 40
  • strokeWidth: default 4
  • linecap: default 'round'

3. BounceLoading

  • gap: default 6
  • count: default 4
  • barWidth: default 4
  • barHeight: default 16
  • duration: default 0.8

4. RotateLoading

  • size: default 40
  • opacity: default 0.2
  • strokeWidth: default 4

5. SpinLoading

  • size: default 40
  • count: default 8
  • barWidth: default 4
  • duration: default 1
  • barHeight: default 10
  • borderRadius: default 1

6. WaveLoading

  • size: default 40
  • count: default 3
  • duration: default 1.5
  • strokeWidth: default 2

7. ClockLoading

  • size
  • duration
  • strokeWidth

8. DashLoading

  • size: default 40
  • duration: default 1.8
  • stroke

9. CopperLoading

  • size: default 40
  • strokeWidth: default 4

Development

npm install
npm start

# see demo in http://localhost:3000

Build

npm run build