@whitewizard/countdown
v1.0.6
Published
Universal countdown Vue component
Downloads
502
Readme
Countdown Vue component
Usage:
import Countdown from @whitewizard/countdown
- Implements an unnamed slot to display something inside component.
- Slot usage: Vue.js slots
- 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" />
- Event usage:
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)