0.1.13 • Published 7 years ago

react-sticky-timer v0.1.13

Weekly downloads
42
License
-
Repository
github
Last release
7 years ago

React Sticky Timer

Build Status

Introduction

A simple countdown sticky that sticks to the top. demo

Dependencies

momentjs


Install

    npm install --save react-sticky-timer

Usage

    const units = {
        seconds: '',
        minutes: ':',
        hours: ':',
        days: 'day',
        years: 'year',
        months: 'month'
    };
    <StickyTimer
        textMessage={this.state.message}
        end={moment(this.state.end)}
        units={units}
        countDownMessage={this.state.countDownMessage}
    />

All options

  static propTypes = {
     end: PropTypes.object,
     units: PropTypes.object,
     textMessage: PropTypes.string,
     countDownMessage: PropTypes.string,
     styleSticky: PropTypes.object,
     styleText: PropTypes.object,
     styleTimer: PropTypes.object,
     classNameText: PropTypes.string,
     classNameTimer: PropTypes.string,
     classNameSticky: PropTypes.string
  };

Help

Refer to App.js

Improvement

  1. Test/Test coverage report
  2. CI/CD process
  3. Remove dependency from moment

Any feedbacks or contributions are welcome!

0.1.13

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.7

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago