@abelgarcia2/date-picker

0.1.2-dev • Public • Published

<date-picker/>

A simple date picker web component built with Vanilla JS 🗓️

Usage

First import the component

<script src="https://unpkg.com/@abelgarcia2/date-picker@0.1.0-dev/dist/bundle.min.js"></script>

Then use the component in your html

<date-picker id="picker" style="width: 300px;"></date-picker>

Get selected date

document.getElementById("picker").getSelectedDate()

Example

See working example at codi.link

Package Sidebar

Install

npm i @abelgarcia2/date-picker

Weekly Downloads

2

Version

0.1.2-dev

License

GPL-3.0-only

Unpacked Size

60.9 kB

Total Files

5

Last publish

Collaborators

  • abelgarcia2