Gathering detailed insights and metrics for react-loading-ui
Gathering detailed insights and metrics for react-loading-ui
Gathering detailed insights and metrics for react-loading-ui
Gathering detailed insights and metrics for react-loading-ui
npm install react-loading-ui
Typescript
Module System
Node Version
NPM Version
68.4
Supply Chain
93.1
Quality
75.6
Maintenance
100
Vulnerability
100
License
JavaScript (69.09%)
CSS (30.91%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
8 Stars
27 Commits
3 Forks
1 Watchers
13 Branches
3 Contributors
Updated on Mar 22, 2024
Latest Version
1.3.0
Package Id
react-loading-ui@1.3.0
Unpacked Size
23.41 kB
Size
6.03 kB
File Count
11
NPM Version
9.4.2
Node Version
18.14.0
Published on
Aug 02, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
React loaing component.
$ npm install react-loading-ui
Live Demo CodeSandbox
Loading()
function.Note: The
Loading()
function toggle between hide and show. But instead of toggling, you can also useShowLoading()
andHideLoading()
1import React, { Component } from 'react'; 2import { Loading } from 'react-loading-ui' 3 4class App extends Component { 5 6 saveForm() { 7 8 /* Show loading-ui */ 9 Loading(); 10 11 fetch(url, requestOptions) 12 .then((response) => { 13 if (response.ok) { 14 return response.json(); 15 } 16 17 /* Hide loading-ui */ 18 Loading(); 19 }); 20 21 } 22 render() { 23 return ( 24 <div> 25 <button type="button" onClick={(e) => this.saveForm()}>Save Form</button> 26 </div> 27 ) 28 } 29 30} 31 32export default App;
You can set the component settings for your entire application or whenever you call Loading({settings})
.
1SetDefault({
2 /* Loading title */
3 title: "",
4 /* Loading text */
5 text: "",
6 /* Show progress bar */
7 progress: false,
8 /* Close the loading when progress is over */
9 progressedClose: false,
10 /* Default theme [light|dark] */
11 theme: "light",
12 /* Top Bar Loading */
13 topBar: false,
14 /* Top Bar Loading */
15 topBar: false,
16 /* Top Bar Loading Color */
17 topBarColor: '#2764B0',
18});
Loading()
and ShowLoading()
preview with light color theme.
Loading({ progress: true })
and ShowLoading({ progress: true })
preview with light color theme.
With the Progress(progress)
function you can ensure the loading progress, see the demo.
If you want to force hiding, you can use HideLoading()
function.
If you want to customize the styles, you can use the following classNames:
Barış Ateş
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/16 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
125 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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