diff --git a/README.md b/README.md index a9fdcff..7916044 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,9 @@ A timer component for React that counts down to zero for a specified number of m `initialTimeRemaining: Number` The time remaining for the countdown (in ms). + `className: String` + Custom class name to be applied to the timer + `interval: Number (optional -- default: 1000ms)` The time between timer ticks (in ms). diff --git a/countdown_timer.jsx b/countdown_timer.jsx index 59b85d0..af0d7fd 100644 --- a/countdown_timer.jsx +++ b/countdown_timer.jsx @@ -7,6 +7,8 @@ var React = require('react'); // props: // - initialTimeRemaining: Number // The time remaining for the countdown (in ms). +// - className: String +// Custom class name to be applied to the timer // // - interval: Number (optional -- default: 1000ms) // The time between timer ticks (in ms). @@ -126,7 +128,7 @@ var CountdownTimer = React.createClass({ var timeRemaining = this.state.timeRemaining; return ( -