
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
react-loading-spin
Advanced tools
A simple reusable animated spinner react component.
npm i --save react-loading-spin
import LoadingSpin from "react-loading-spin";
const ExampleOfUsingDefaultLoadingSpin = () => (
<div className={"ExampleOfUsage"}>
<LoadingSpin />
</div>
);
Property name | type | Required | Default value | Comment |
---|---|---|---|---|
size | string | false | '60px' | CSS length value for height and width of the spinner |
width | string | false | '6px' | CSS length value for width the spinner |
primaryColor | string | false | '#1ecd96' | CSS color value for one half of the loader |
secondaryColor | string | false | '#cccccc' | CSS color value for second half of the loader |
animationDuration | string | false | '2s' | CSS animation-duration property value |
animationTimingFunction | string | false | 'ease-in-out' | CSS animation-timing-function property value |
animationDirection | string | false | 'normal' | CSS animation-direction property value |
numberOfRotationsInAnimation | number | false | 2 | number of spins during single animation |
const ExampleOfUsingLoadingSpinWithProps = () => (
<div className={"ExampleOfUsage"}>
<LoadingSpin
duration="2s"
width="15px"
timingFunction="ease-in-out"
direction="alternate"
size="200px"
primaryColor="yellow"
secondaryColor="#333"
numberOfRotationsInAnimation={2}
/>
</div>
);
MIT - see the LICENSE file for details.
FAQs
A simple animated spinner react component.
The npm package react-loading-spin receives a total of 0 weekly downloads. As such, react-loading-spin popularity was classified as not popular.
We found that react-loading-spin 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
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.