Socket
Socket
Sign inDemoInstall

react-simple-flipclock

Package Overview
Dependencies
7
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-simple-flipclock

A simple flip clock build with React, moment, styled-components and CSS animation


Version published
Maintainers
1
Install size
4.51 MB
Created

Readme

Source

react-simple-flipclock

A very simple Flip Clock component created by using CSS animation and React

Table of Contents

  • Installation
  • Usage

Demo

Link to demo: https://react-simple-flipclock.surge.sh

Installation

npm i react-simple-flipclock --save

Usage

Import Flip Clock component into your React component

import * as React from "react";
import ReactDOM from "react-dom";
import Flipclock from "react-simple-flipclock";

class App extends React.Component {
  render() {
    return (
      <Flipclock 
        seconds={12 * 24 * 60 * 60} // Days up to 365 days
        dark={true} // Optional for dark theme
        fontSize={30} // Optional font size
    />
    );
  }
}

ReactDOM.render(<App />, document.getElementById("root"));

Keywords

FAQs

Last updated on 12 Apr 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