Socket
Socket
Sign inDemoInstall

react-spinner-children

Package Overview
Dependencies
7
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-spinner-children

A React component wrapper for spin.js with support for children


Version published
Weekly downloads
10K
decreased by-4.73%
Maintainers
1
Install size
461 kB
Created
Weekly downloads
 

Readme

Source

React spin

A React component wrapper for spin.js with support for children. You can use it in your isomorphic application(server rendering) too.

NPM version build status Test coverage

Support us

Star this project on GitHub.

Usage

import React, { Component } from 'react';
import Spinner from 'react-spinner-children';

export default class Example extends Component {
  render() {
    const isLoaded = true;
    const customSpinConfig = {
      lines: 10,
    };  // all configs http://fgnass.github.io/spin.js/

    return (
      <Spinner loaded={isLoaded} config={customSpinConfig}>
        <span>This content will be show when isLoaded === true</span>
      </Spinner>
    );
  }
}

Try our other React components

Credits

Zlatko Fedor

Keywords

FAQs

Last updated on 29 Sep 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc