react-loading-overlay
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "react-loading-overlay", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Loading overlays with fade, spinner, message support.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,1 +0,34 @@ | ||
# react-loading-overlay | ||
# Loading Overlay | ||
[](https://badge.fury.io/js/react-loading-overlay) | ||
A customizable, simple loading overlay. | ||
 | ||
------- | ||
## Usage | ||
```javascript | ||
<LoadingOverlay | ||
active={isActive} | ||
spinner | ||
text='Loading your content...' | ||
> | ||
Some components | ||
</LoadingOverlay> | ||
``` | ||
### props | ||
+ **active**, `Boolean`, whether the loader is visible. | ||
+ **animate**, `Boolean`, whether to fade the overlay in and out. | ||
+ **spinner**, `Boolean`, whether to use a spinner in the loader. | ||
+ **text**, `String`, used as content of the loader. | ||
+ **background**, `String`, valid css color declaration for the overlay background. | ||
+ **color**, `String`, valid css color declaration for the text and circle color. | ||
+ **spinnerSize**, `String`, valid css size (`100px`) for the size of the spinner circle. | ||
+ **zIndex**, `Integer`, use in case you are experiencing other z-indexed components appearing over top of the overlay. |
617033
35