spinner-container
overlays a spinner component
Last updated 3 days ago by stormuicomponents .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install spinner-container 
SYNC missed versions from official npm registry.

A simple wrapper around the 'react-spinners' component ... when the spinner is displayed, an opacity is applied to any children components.

Installation

npm install --save spinner-container

Importing

import SpinnerContainer from 'spinner-container'

Usage

class MyExample extends Component {
    const spinnerColor = '#ABC';

    constructor(props) {
        super(props)
        this.state  = { loading: false }
    }

    render() {
        return(
            <SpinnerContainer
                loading={this.state.loading}
                color={spinnerColor} >
                <div>Child Content here</div>
            </SpinnerContainer>
        );
    }
}

Demo

Download the spinner-container library Change to the 'spinner-container' directory Start the the server (npm start) Open browser to http://localhost:3000/

Current Tags

  • 3.0.0                                ...           latest (3 days ago)

44 Versions

  • 3.0.0                                ...           3 days ago
  • 2.0.19                                ...           4 days ago
  • 2.0.18                                ...           4 days ago
  • 2.0.17                                ...           4 days ago
  • 2.0.16                                ...           6 days ago
  • 2.0.15                                ...           12 days ago
  • 2.0.14                                ...           14 days ago
  • 2.0.13                                ...           16 days ago
  • 2.0.12                                ...           17 days ago
  • 2.0.11                                ...           17 days ago
  • 2.0.10                                ...           17 days ago
  • 2.0.9                                ...           17 days ago
  • 2.0.8                                ...           18 days ago
  • 2.0.7                                ...           18 days ago
  • 2.0.6                                ...           18 days ago
  • 2.0.5                                ...           18 days ago
  • 2.0.4                                ...           18 days ago
  • 2.0.3                                ...           18 days ago
  • 2.0.2                                ...           18 days ago
  • 2.0.1                                ...           18 days ago
  • 2.0.0                                ...           18 days ago
  • 1.0.27                                ...           10 months ago
  • 1.0.26                                ...           10 months ago
  • 1.0.25                                ...           10 months ago
  • 1.0.24                                ...           10 months ago
  • 1.0.23                                ...           10 months ago
  • 1.0.21                                ...           10 months ago
  • 1.0.20                                ...           a year ago
  • 1.0.19                                ...           a year ago
  • 1.0.18                                ...           a year ago
  • 1.0.17                                ...           a year ago
  • 1.0.16                                ...           a year ago
  • 1.0.15                                ...           a year ago
  • 1.0.14                                ...           a year ago
  • 1.0.13                                ...           a year ago
  • 1.0.12                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 121
This Month 155
Last Day 0
Last Week 17
Last Month 244
Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |