keyeh / react-countdown

countdown timer created for a interview

Home Page:https://codesandbox.io/s/8kjn636pq0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-countdown

A configurable and accessible React countdown component that supports ARIA-live screenreader announcements

alt text

Usage

<Countdown endAt={new Date("12/31/2018")} aria-live="polite" aria-label="count down 1" />

https://codesandbox.io/s/8kjn636pq0

Props

endAt: instanceOf(Date).isRequired,
allowPast: bool, // True: allow negative numbers, False: stop at zero
"aria-live": string, // If a screenreader is installed, it will announce the remaining time every 10 seconds
"aria-label": string

About

countdown timer created for a interview

https://codesandbox.io/s/8kjn636pq0


Languages

Language:JavaScript 74.0%Language:HTML 15.5%Language:CSS 10.5%