@solid-primitives/countdown
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

@solid-primitives/countdown

lerna size size

Creates a countdown primitive based on supplied dates and interval.

Installation

npm install @solid-primitives/countdown
# or
yarn add @solid-primitives/countdown

How to use it

Create a countdown based on a Javascript Date. Provides broken down time remaining.

const { days, hours, minutes, seconds, milliseconds } = createCountdown(
  new Date("January 1, 2025 00:00:00")
);

Demo

You may view a working example here: https://codesandbox.io/s/create-countdown-s5f6n?file=/src/index.tsx

Changelog

Expand Changelog

0.0.100

First commit of the countdown primitive.

1.0.9

Updated to Stage 3 and published CJS.

Package Sidebar

Install

npm i @solid-primitives/countdown

Weekly Downloads

4

Version

1.0.9

License

MIT

Unpacked Size

6.78 kB

Total Files

8

Last publish

Collaborators

  • thetarnav.
  • lexlohr
  • davedbase