Installations
npm install react-loading-icons
Developer Guide
Typescript
Yes
Module System
CommonJS
Min. Node Version
>= 12.0.0
Node Version
16.15.0
NPM Version
8.5.5
Contributors
Unable to fetch Contributors
Languages
TypeScript (96.4%)
JavaScript (2.46%)
HTML (0.92%)
Shell (0.22%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
Download Statistics
Total Downloads
1,281,417
Last Day
87
Last Week
87
Last Month
35,799
Last Year
533,730
GitHub Statistics
58 Stars
91 Commits
3 Forks
2 Watching
6 Branches
1 Contributors
Bundle Size
25.83 kB
Minified
3.44 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.1.0
Package Id
react-loading-icons@1.1.0
Unpacked Size
161.63 kB
Size
18.54 kB
File Count
93
NPM Version
8.5.5
Node Version
16.15.0
Total Downloads
Cumulative downloads
Total Downloads
1,281,417
Last day
0%
87
Compared to previous day
Last week
-98.8%
87
Compared to previous week
Last month
0.7%
35,799
Compared to previous month
Last year
14.2%
533,730
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
44
React Loading Icons
A pure SVG zero-dependency React adaptation of Sam Herbert's SVG Loaders library.
Built with React 17 and TypeScript. Check out the Demo!
Also works with JavaScript, of course (supports ESM tree shaking).
Usage
Install from NPM
1yarn add react-loading-icons
1npm install react-loading-icons
Import all the loaders in a namespaced fashion
You can import all the loaders at once:
1import LoadingIcons from 'react-loading-icons'
and use them in a namespaced manner:
1<LoadingIcons.Bars />
Import an individual loader
You can also import a single loader:
1import { Bars } from 'react-loading-icons'
and use it without any fancy namespacing:
1<Bars />
You can even go as far as copying over a single .js file from the dist/components
directory to your project — this way you can directly import a certain loading icon without having to import the whole package.
Components
1<Audio /> 2<BallTriangle /> 3<Bars /> 4<Circles /> 5<Grid /> 6<Hearts /> 7<Oval /> 8<Puff /> 9<Rings /> 10<SpinningCircles /> 11<TailSpin /> 12<ThreeDots />
Options
Each of these components will accept any SVG tag presentation attributes as well as all valid JSX properties (key
, onClick
, …) as props. Animation speed can be controlled via speed attribute (1
= 100% speed, .5
= 50% speed, 2
= 200%, and so on). The components are also smart about inheriting fill
, fillOpacity
, stroke
, strokeOpactiy
and strokeWidth
, so these can also easily be controlled.
Common Usage
1// renders the Puff icon with a mint green stroke 2<Puff stroke="#98ff98" /> 3 4// renders the Puff icon's mint green stroke with an opacity of 12.5% 5<Puff stroke="#98ff98" strokeOpacity={.125} /> 6 7// renders the Puff icon at 75% speed with a mint green stroke with an opacity of 12.5% 8<Puff stroke="#98ff98" strokeOpacity={.125} speed={.75} />
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE.md:0
- Warn: project license file does not contain an FSF or OSI license.
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/integration-test.yml:1
- Warn: no topLevel permission defined: .github/workflows/unit-test.yml:1
- Warn: no topLevel permission defined: .github/workflows/version.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integration-test.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/dkress59/react-loading-icons/integration-test.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integration-test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/dkress59/react-loading-icons/integration-test.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integration-test.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/dkress59/react-loading-icons/integration-test.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integration-test.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/dkress59/react-loading-icons/integration-test.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/unit-test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/dkress59/react-loading-icons/unit-test.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/unit-test.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/dkress59/react-loading-icons/unit-test.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/unit-test.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/dkress59/react-loading-icons/unit-test.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/unit-test.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/dkress59/react-loading-icons/unit-test.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/version.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/dkress59/react-loading-icons/version.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/version.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/dkress59/react-loading-icons/version.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/integration-test.yml:25
- Warn: npmCommand not pinned by hash: .github/workflows/integration-test.yml:31
- Warn: npmCommand not pinned by hash: .github/workflows/integration-test.yml:38
- Warn: npmCommand not pinned by hash: .github/workflows/integration-test.yml:58
- Warn: npmCommand not pinned by hash: .github/workflows/integration-test.yml:64
- Warn: npmCommand not pinned by hash: .github/workflows/integration-test.yml:71
- Info: 0 out of 10 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 6 npmCommand dependencies pinned
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
42 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-653v-rqx9-j85p
- Warn: Project is vulnerable to: GHSA-434g-2637-qmqr
- Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m
- Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw
- Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p
- Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747
- Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc
- Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx
- Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97
- Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq
- Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488
- Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g
- Warn: Project is vulnerable to: GHSA-4wx3-54gh-9fr9
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-w5hq-hm5m-4548
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq
- Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j
- Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986
- Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
Score
2.5
/10
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More