Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
react-spinners-css
Advanced tools
[![CircleCI](https://circleci.com/gh/JoshK2/react-spinners-css.svg?style=svg)](https://circleci.com/gh/JoshK2/react-spinners-css) [![bit components](https://img.shields.io/badge/dynamic/json.svg?color=6e3991&label=bit%20components&query=payload.totalCompo
Amazing collection of React spinners components with pure css.
The React spinners are based on loading.io and from all over the web.
If you want to add your own spinner, please follow the contributing guidelines.
Browse components and explore their props with Bit.
Install specific react spinner component with npm, yarn or bit without having to install the whole project.
Install components and live demo
Each component accepts a color
prop, and few accepts also size
prop.
The default color
prop is #7f58af
.
Component that accepts size
prop have a default size in pixel.
Spinner | color: string | size: number | className: string | style: object |
---|---|---|---|---|
<Circle/> | #7f58af | 64 | "" | {} |
<Default/> | #7f58af | 80 | "" | {} |
<Ellipsis/> | #7f58af | 80 | "" | {} |
<DualRing/> | #7f58af | 80 | "" | {} |
<Facebook/> | #7f58af | 80 | "" | {} |
<Grid/> | #7f58af | 80 | "" | {} |
<Heart/> | #7f58af | 80 | "" | {} |
<Hourglass/> | #7f58af | 32 | "" | {} |
<Ring/> | #7f58af | 80 | "" | {} |
<Ripple/> | #7f58af | 80 | "" | {} |
<Roller/> | #7f58af | - | "" | {} |
<Spinner/> | #7f58af | - | "" | {} |
<Orbitals/> | #7f58af | - | "" | {} |
<Ouroboro/> | #7f58af | - | "" | {} |
$ npm i --save react-spinners-css
Install specific react spinner component with bit, npm or yarn without having to install the whole project.
Using bit to play with live demo, and try the spinners before install.
set npm regisetry config(one time action):
npm config set '@bit:registry' https://node.bit.dev
and use your favorite package manager:
npm i @bit/joshk.react-spinners-css.facebook
yarn add @bit/joshk.react-spinners-css.facebook
bit import joshk.react-spinners-css/facebook
you can use a random color from jotils
//using npm or yarn
import { Circle, Heart } from 'react-spinners-css';
//using bit
import Facebook from '@bit/joshk.react-spinners-css.facebook';
import { getRandomColor } from '@bit/joshk.jotils.get-random-color'
...
render() {
return(
<div>
<Circle /> //default color is #7f58af
<Circle color="red" />
<Circle color="#be97e8" size={200} /> //size prop is number in pixel
<Heart color={getRandomColor()} />
<Facebook /> //default color is #7f58af
<Facebook color="red" />
</div>
)
}
You can see the components locally by cloning this repo and doing the following steps:
package.json
, run: npm install
.npm run start
.If you like to support my open-source contributions please star and share this project. 💫
How to use with Next.js?
Install next-transpile-modules and set library CSS to be transpiled.
Example configuration with the library package or with a Bit component:
// next.config.js
const withTM = require('next-transpile-modules')([
'react-spinners-css',
'@bit/joshk.react-spinners-css.circle',
]) // pass the modules you would like to see transpiled
module.exports = withTM()
How to use with Razzle?
Create razzle.config.js
file and add the following:
const nodeExternals = require('webpack-node-externals')
module.exports = {
modify: (config, { target, dev }) => {
config.externals =
target === 'node'
? [
nodeExternals({
whitelist: [
dev ? 'webpack/hot/poll?300' : null,
/\.(eot|woff|woff2|ttf|otf)$/,
/\.(svg|png|jpg|jpeg|gif|ico)$/,
/\.(mp4|mp3|ogg|swf|webp)$/,
/\.(css|scss|sass|sss|less)$/,
/^react-spinners-css/,
/^@bit\/joshk\.react-spinners-css\.circle/,
].filter(Boolean),
}),
]
: []
return config
},
}
This is a simple example based on the Razzle repo.
FAQs
[![CircleCI](https://circleci.com/gh/JoshK2/react-spinners-css.svg?style=svg)](https://circleci.com/gh/JoshK2/react-spinners-css) [![bit components](https://img.shields.io/badge/dynamic/json.svg?color=6e3991&label=bit%20components&query=payload.totalCompo
The npm package react-spinners-css receives a total of 121 weekly downloads. As such, react-spinners-css popularity was classified as not popular.
We found that react-spinners-css demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.