just-time-webcomponent
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Just Time Webcomponent npm Dependencies npm type definitions Published on webcomponents.org

Webcomponent showing current time. Inspired by just-time.eu. Try demo.html.

How to use

<script
	type="module"
	src="https://unpkg.com/just-time-webcomponent@latest/dist/index.es.js?module"
></script>

Right now is <just-time></just-time>.

Or without seconds

Right now is <just-time hide-seconds></just-time>.

Prevent size jumps

Set font-variant-numeric: tabular-nums in your CSS. Use a font supporting this like Google fonts Open Sans.

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i just-time-webcomponent

    Weekly Downloads

    2

    Version

    0.0.3

    License

    ISC

    Unpacked Size

    11.1 kB

    Total Files

    9

    Last publish

    Collaborators

    • onset