react-hooks-count-down

0.1.16 • Public • Published

react-count-down

React Hooks count down components

Install

npm install react-hooks-count-down

How use

import CountDown from 'react-hooks-count-down'
import React from 'react'
const App = () => {
  return <CountDown></CountDown>
}
Props:

details look Demo

{
  // day*hour*minutes*seconds*milliseconds 
  // for example 3 * 24 * 60 * 60 * 1000
  time?: number 
  format?: string // DD hh:mm:ss:ms
  getTime?: (time: Timer) => void // get count down time
  renderContent?: (args: Content) => ReactElement<any, any> | null // custom render count down
  actionRender?: (args: Content) => React.ReactNode
  // action custom 
}

License

MIT

Package Sidebar

Install

npm i react-hooks-count-down

Weekly Downloads

0

Version

0.1.16

License

ISC

Unpacked Size

18.3 kB

Total Files

9

Last publish

Collaborators

  • aemon