0.1.0 • Published 15 days ago

react-magic-spinners v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
15 days ago

🚀 React Magic Spinners

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

NameDescriptionDefaultRequiredData Type
widthWidth of the loader200Nonumber or string
heightHeight of the loader10Nonumber or string
durationDuration of the animation3Nonumber
colorColor of the loader#d20062Nostring
trackColorColor of the loader's track#d2006260Nostring
iterationCountNumber of animation iterationsinfiniteNonumber or string
styleCSS stylesundefinedNoReact.CSSProperties
classNameCSS class nameundefinedNostring
isRoundCapWhether the loader has round captrueNoboolean
NameDescriptionDefaultRequiredData Type
dotsSizeSize of the dots16Nonumber or string
durationDuration of the animation0.5Nonumber
colorColor of the loader#d20062Nostring
iterationCountNumber of animation iterationsinfiniteNonumber or string
styleCSS stylesundefinedNoReact.CSSProperties
classNameCSS class nameundefinedNostring
marginMargin between the dots4Nonumber or string
dotsCountNumber of dots in the loader3Nonumber
NameDescriptionDefaultRequiredData Type
sizeSize of the loader64Nonumber or string
durationDuration of the animation2Nonumber
colorColor of the loader#d20062Nostring
iterationCountNumber of animation iterationsinfiniteNonumber or string
styleCSS stylesundefinedNoReact.CSSProperties
classNameCSS class nameundefinedNostring
isBorderOnlyWhether the loader is border onlyfalseNoboolean
borderWidthWidth of the border2Nonumber
NameDescriptionDefaultRequiredData Type
sizeSize of the loader112Nonumber or string
borderWidthWidth of the border1Nonumber
circleCountNumber of circles in the loader5Nonumber
durationDuration of the animation1Nonumber
colorColor of the loader#d20062Nostring
iterationCountNumber of animation iterationsinfiniteNonumber or string
styleCSS stylesundefinedNoReact.CSSProperties
classNameCSS class nameundefinedNostring
isCenteredWhether the loader is centeredfalseNoboolean
NameDescriptionDefaultRequiredData Type
sizeSize of the loader16Nonumber
durationDuration of the animation2Nonumber
colorColor of the loader#d20062Nostring
iterationCountNumber of animation iterationsinfiniteNonumber or string
styleCSS stylesundefinedNoReact.CSSProperties
classNameCSS class nameundefinedNostring
NameDescriptionDefaultRequiredData Type
sizeSize of the loader32Nonumber
borderWidthWidth of the border2Nonumber
durationDuration of the animation1Nonumber
colorColor of the loader#d20062Nostring
iterationCountNumber of animation iterationsinfiniteNonumber or string
styleCSS stylesundefinedNoReact.CSSProperties
classNameCSS class nameundefinedNostring
NameDescriptionDefaultRequiredData Type
dotsSizeSize of the dots16Nonumber or string
durationDuration of the animation1Nonumber
colorColor of the loader#d20062Nostring
backgroundColorBackground color of the loadertransparentNostring
iterationCountNumber of animation iterationsinfiniteNonumber or string
styleCSS stylesundefinedNoReact.CSSProperties
classNameCSS class nameundefinedNostring
marginMargin between the dots3Nonumber or string
rowsNumber of rows in the grid3Nonumber
columnsNumber of columns in the grid3Nonumber
NameDescriptionDefaultRequiredData Type
textText to be writtenHelloNostring
fontSizeFont size of the text5remNonumber or string
fontFamilyFont family of the textArialNostring
fontWeightFont weight of the text600Nonumber or string
widthWidth of the loader500Nonumber
heightHeight of the loader200Nonumber
backgroundColorBackground color of the loadertransparentNostring
durationDuration of the animation3Nonumber
iterationCountNumber of animation iterationsinfiniteNonumber or string
styleCSS stylesundefinedNoReact.CSSProperties
classNameCSS class nameundefinedNostring

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

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

License

View License

0.1.0

15 days ago

0.0.1-beta.5

15 days ago

0.0.1-beta.4

15 days ago

0.0.1-beta.3

18 days ago

0.0.1-beta.2

18 days ago

0.0.1-beta.1

18 days ago

0.0.1-beta.0

18 days ago

0.0.1

18 days ago