0.1.26 • Published 3 years ago

react-custom-count-down v0.1.26

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Getting Started with React Custom Countdown

A customizable countdown component for React.

Getting Started

You can install the module via npm or yarn:

npm install react-custom-count-down --save

yarn add react-custom-count-down

How to Use?

import { Countdown } from "react-custom-count-down";

const timeTillDate = "08 05 2021, 11:15 am"; const DATE_FORMAT = "MM DD YYYY, h:mm a"; //Date must be same as Date format ; you can change rounder stock color by this properties colorOfStock ex. colorOfStock = '#000000'

you can achieve same date which one require in this component by this formula => moment(new Date()).format(DATE_FORMAT);

const App = () => {
  return(
    <Countdown
      timeTillDate={timeTillDate}
      timeFormat={DATE_FORMAT}
    />
  )
}