Web component to make a countdown of days, hours, minutes and seconds to a date-time.
npm install @dile/dile-countdown-time
Important: this component depends on MomentJS. The component by itself does not install the Moment library. You need to install it in your preferred way.
Import the component.
Use the component.
<dile-countdown-time dateString="31-12-2020 10:00" language="es"></dile-countdown-time>
- dateString: The dateString property works with the date in "DD-MM-YYYY HH:mm" format.
- language: The language property accepts the languages "en" (default) or "es".
- shape: The shape property accepts the shapes "square" (default) or "circle".
The following custom properties and mixins are available for styling: