Skip to content

Architrixs/date-time-custom-element

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

<date-time> element

A custom element that displays a date and time.

Demo

Installation

Available on npm as @architrixs/date-time-element.

$ npm install --save @architrixs/date-time-element

Usage

Script

Import as ES modules:

import '@architrixs/date-time-element'

Include with a script tag:

<script type="module" src="./node_modules/@architrixs/date-time-element/dist/src/date-time.js">

Browser support

Browsers without native custom element support require a polyfill.

  • Chrome
  • Firefox
  • Safari
  • Microsoft Edge

License

Distributed under the MIT license. See LICENSE for details.

About

A custom element in HTML that displays the current date and time

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 2

  •  
  •