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 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-magic-spinners

v0.1.0

Published

React Magic Spinners is a collection of loading spinners for React.js

Downloads

24

Readme

🚀 React Magic Spinners

Installation

Install with npm:

npm i react-magic-spinners

Install with bun:

bun add react-magic-spinners

Install with yarn:

yarn add react-magic-spinners

Install with pnpm:

pnpm add react-magic-spinners

Usage

Import the spinner components:

import { BeatLoader } from "react-magic-spinners";

Now you can use both components like bellow.

Use with default styles:

<BeatLoader/>

Use with props:

<BeatLoader
 dotsSize={"2rem"}
 duration={2}
 dotsCount = {3}
 iterationCount = "infinity"
/>

Available Spinners

  • BarLoader
  • BeatLoader
  • BounceLoader
  • CircleLoader
  • ClimbingBoxLoader
  • ClipLoader
  • GridLoader
  • Writer

Props

| Name | Description | Default | Required | Data Type | |-----------------|---------------------------------|------------|----------|---------------------| | width | Width of the loader | 200 | No | number or string | | height | Height of the loader | 10 | No | number or string | | duration | Duration of the animation | 3 | No | number | | color | Color of the loader | #d20062 | No | string | | trackColor | Color of the loader's track | #d2006260| No | string | | iterationCount | Number of animation iterations | infinite | No | number or string | | style | CSS styles | undefined| No | React.CSSProperties | | className | CSS class name | undefined| No | string | | isRoundCap | Whether the loader has round cap| true | No | boolean |

| Name | Description | Default | Required | Data Type | |--------------------|---------------------------------|-------------|----------|---------------------| | dotsSize | Size of the dots | 16 | No | number or string | | duration | Duration of the animation | 0.5 | No | number | | color | Color of the loader | #d20062 | No | string | | iterationCount | Number of animation iterations | infinite | No | number or string | | style | CSS styles | undefined | No | React.CSSProperties | | className | CSS class name | undefined | No | string | | margin | Margin between the dots | 4 | No | number or string | | dotsCount | Number of dots in the loader | 3 | No | number |

| Name | Description | Default | Required | Data Type | |--------------------|-----------------------------------|-------------|----------|---------------------| | size | Size of the loader | 64 | No | number or string | | duration | Duration of the animation | 2 | No | number | | color | Color of the loader | #d20062 | No | string | | iterationCount | Number of animation iterations | infinite | No | number or string | | style | CSS styles | undefined | No | React.CSSProperties | | className | CSS class name | undefined | No | string | | isBorderOnly | Whether the loader is border only | false | No | boolean | | borderWidth | Width of the border | 2 | No | number |

| Name | Description | Default | Required | Data Type | |--------------------|---------------------------------|-------------|----------|---------------------| | size | Size of the loader | 112 | No | number or string | | borderWidth | Width of the border | 1 | No | number | | circleCount | Number of circles in the loader | 5 | No | number | | duration | Duration of the animation | 1 | No | number | | color | Color of the loader | #d20062 | No | string | | iterationCount | Number of animation iterations | infinite | No | number or string | | style | CSS styles | undefined | No | React.CSSProperties | | className | CSS class name | undefined | No | string | | isCentered | Whether the loader is centered | false | No | boolean |

| Name | Description | Default | Required | Data Type | |--------------------|---------------------------------|-------------|----------|---------------------| | size | Size of the loader | 16 | No | number | | duration | Duration of the animation | 2 | No | number | | color | Color of the loader | #d20062 | No | string | | iterationCount | Number of animation iterations | infinite | No | number or string | | style | CSS styles | undefined | No | React.CSSProperties | | className | CSS class name | undefined | No | string |

| Name | Description | Default | Required | Data Type | |--------------------|---------------------------------|-------------|----------|---------------------| | size | Size of the loader | 32 | No | number | | borderWidth | Width of the border | 2 | No | number | | duration | Duration of the animation | 1 | No | number | | color | Color of the loader | #d20062 | No | string | | iterationCount | Number of animation iterations | infinite | No | number or string | | style | CSS styles | undefined | No | React.CSSProperties | | className | CSS class name | undefined | No | string |

| Name | Description | Default | Required | Data Type | |--------------------|---------------------------------|---------------------|----------|---------------------| | dotsSize | Size of the dots | 16 | No | number or string | | duration | Duration of the animation | 1 | No | number | | color | Color of the loader | #d20062 | No | string | | backgroundColor | Background color of the loader | transparent | No | string | | iterationCount | Number of animation iterations | infinite | No | number or string | | style | CSS styles | undefined | No | React.CSSProperties | | className | CSS class name | undefined | No | string | | margin | Margin between the dots | 3 | No | number or string | | rows | Number of rows in the grid | 3 | No | number | | columns | Number of columns in the grid | 3 | No | number |

| Name | Description | Default | Required | Data Type | |--------------------|---------------------------------|---------------------|----------|---------------------| | text | Text to be written | Hello | No | string | | fontSize | Font size of the text | 5rem | No | number or string | | fontFamily | Font family of the text | Arial | No | string | | fontWeight | Font weight of the text | 600 | No | number or string | | width | Width of the loader | 500 | No | number | | height | Height of the loader | 200 | No | number | | backgroundColor | Background color of the loader | transparent | No | string | | duration | Duration of the animation | 3 | No | number | | iterationCount | Number of animation iterations | infinite | No | number or string | | style | CSS styles | undefined | No | React.CSSProperties | | className | CSS class name | undefined | No | string |

If you need change writer text color.add this line to your css file

 --rms-writer-color: your color !important;

License

View License