Socket
Socket
Sign inDemoInstall

react-spinner-timer

Package Overview
Dependencies
11
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-spinner-timer

React SVG Spinner for update actions


Version published
Weekly downloads
102
decreased by-47.42%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

NPM

React-Spinner-Timer

The React Spinner Timer for React.

Component

React Spinner Timer

Installation and usage

To install React Spinner Timer you can run:

yarn add react-spinner-time

or

npm install react-spinner-time

To use:

import React from "react";
import ReactSpinnerTimer from "react-spinner-timer";

function App() {
  const handleChange = () => {
    console.log("oh yeah!!!");
  };
  return (
    <ReactSpinnerTimer
      timeInSeconds={60}
      totalLaps={60}
      isRefresh={true}
      onLapInteraction={handleChange}
    />
  );
}
export default App;

Props

Common props you need to specify:

  • timeInSeconds - time to show a component lap
  • totalLaps - total laps
  • onLapInteraction - when you complete a lap, what to do?
  • isRefresh - show component(Optional)

Thanks

Thanks for downloading, use wisely!

Keywords

FAQs

Last updated on 17 Aug 2020

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