@whitewizard/countdown

1.0.6 • Public • Published

Countdown Vue component

Usage:

  • import Countdown from @whitewizard/countdown
  • Implements an unnamed slot to display something inside component.
  • Root element gets 'countdown-ended' class when countdown end is reached.
  • Emits 'countDownEnd' event with root HTML element as event.el
    • Event usage: <Countdown @countDownEnd="myHandler" />

Props:

  • format {String}. String representing units to display, separated by colons. Default: hours:minutes:seconds
  • separators {String}. Text to show between countdown data elements, separated by colons. Default: h:m:s
  • end {String} RFC 3339 datetime string. Represents countdown end time. Required. (RFC 3339)

Readme

Keywords

none

Package Sidebar

Install

npm i @whitewizard/countdown

Weekly Downloads

27

Version

1.0.6

License

ISC

Unpacked Size

9.32 kB

Total Files

6

Last publish

Collaborators

  • whitewizard