React Circular Loading
Loading component for React
Install
npm i --save react-circular-loading
Usage
import Loading from 'react-circular-loading'import 'react-circular-loading/style.css' //..<Loading />//..
API
<Loading = = = = />
text [String | Optional]
A status text for the spinner
size [String | Optional]
Custom sizes of the spinner. They are:
- medium (default)
- button (to use inside a button or anchor tag)
- x-small
- small
- large
invese [String | Optional]
If set to inverse="inverse" change the spinner to it's invervese color. Default: #ffffff
wrapperClass [String | Optional]
Adds a class to the spinner's parent
Styling with Sass
; //Spinner's main background color ; //Spinner's inverse color ; //Text main color ;//Text inverse color ; //Text font family // Spinner sizes ; //Button ; //Button text ; //X-small ; //X-small text ; //Small ; //Small text ; //Medium (Default) ; //Medium text ; //Large ; //Large text