CalendarBits is a lightweight library for building calendar or date picker UI without the tedious groundwork.
-
Via the CDN:
<script src="https://unpkg.com/calendar-bits"></script>
-
Npm package:
#npm npm i calendar-bits #yarn yarn add calendar-bits
calendar.init({
dateValue: new Date(), // Date object, number or YYYY-MM-DD string
dateChanged: () => {}
});
See the docs for detailed information.