Git Product home page Git Product logo

react-fullscreen-loading's Introduction

react-fullscreen-loading

npm version

Minimal fullscreen loading for react

Edit v6z782xow7

Installation

npm install --save react-fullscreen-loading

Example

import React from 'react';
import Loading from 'react-fullscreen-loading';

class App extends React.Component {
  render() {
    return(
      <Loading loading background="#2ecc71" loaderColor="#3498db" />
    )
  }
}

export default App;

Props

Name Type Default Value
loading boolean false
background String rgba(236, 240, 241, 0.7)
loaderColor String #e74c3c

Licence

Code released under the MIT License

react-fullscreen-loading's People

Contributors

shamin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

0luwaj0x1

react-fullscreen-loading's Issues

How can I close the loader within the component?

Hi,

I have included your library as suggestion in code as a component. I would like the loader to close itself after a certain amount of time has passed. The loader shows because of the property assigned to this.props.loading, however, I can not set that property after a delay, because of the inaccessibility of props.

Your guidance would be appreciated.

Regards,

Willem

Adding text below loader

hi,

sorry for silly question, im very new to react and components. i like your fullscreen loader, but need to add text to it, like "Loading, please wait...".

could you assist in the matter please?

regards

willem

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.