0.1.2 • Published 6 years ago

react-t-minus-timer v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

react-t-minus-timer

A countdown timer component for React

Install

Install with npm:

npm install --save react-t-minus-timer

Install with yarn:

yarn add react-t-minus-timer

Usage

Basic Example

import React from 'react'
import ReactDOM from 'react-dom'
import Timer from 'react-t-minus-timer'

ReactDOM.render(
  <Timer endTime='2018-06-01T00:00:00.000+07:00' />,
  document.getElementById('countdown_timer')
)

Props

NameTypeDefaultRequired?Description
endTimeStringEnd time in ISO Format
separatorsObject{ day: ':', hour: ':', minute: ':', second: '' }Separator to display after each section
0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago