1.0.0 • Published 4 years ago

react-countdown-text v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

react-countdown-text

A React component that converts a timestamp of a future date to a readable countdown clock, based on a format.

Installation

npm install --save react-countdown-text

Usage

import React, { Component } from 'react';
import { Countdown } from 'react-countdown-text';

export default class App extends Component {
    render() {
        return <Countdown finishTime={1543622400} />
    }
}

Properties

NameTypeDefaultDescription
formatstring{d}:{h}:{m}:{s}The format that will be applied to the milliseconds
finishTimenumberREQUIREDThe future date timestamp
textStyleText StyleThe style that will be applied to the countdown text