An open API service indexing awesome lists of open source software.

https://github.com/architrixs/date-time-custom-element

A custom element in HTML that displays the current date and time
https://github.com/architrixs/date-time-custom-element

custom-elements datetime html javascript web-components

Last synced: 8 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# <date-time> element

A custom element that displays a date and time.

[Demo](https://architrixs.github.io/date-time-custom-element/examples/index.html)

## Installation
Available on [npm](https://www.npmjs.com/) as [**@architrixs/date-time-element**](https://www.npmjs.com/package/@architrixs/date-time-element).
```
$ npm install --save @architrixs/date-time-element
```

## Usage

### Script

Import as ES modules:

```js
import '@architrixs/date-time-element'
```

Include with a script tag:

```html

```

## Browser support

Browsers without native [custom element support][support] require a [polyfill][].
- Chrome
- Firefox
- Safari
- Microsoft Edge

[support]: https://caniuse.com/custom-elementsv1
[polyfill]: https://github.com/webcomponents/custom-elements

## License

Distributed under the MIT license. See LICENSE for details.