lightpickr
v0.7.1
Published
Lightweight dependency-free JavaScript datepicker
Downloads
1,417
Maintainers
Readme
Lightpickr
Dependency-free JavaScript datepicker with a ready-made UI, CSS-variable theming, ranges, optional time, and plugins. ~16KB gzipped.
Documentation
Full guides, API reference, options, events, accessibility, examples, and theming live in the documentation site in this repo: docs/. The content source is under docs/content/docs/.
Install
npm install lightpickrUsage
import Lightpickr from 'lightpickr';
import 'lightpickr/lightpickr.css';
const picker = new Lightpickr('#my-input' [, options]);CDN:
<link rel="stylesheet" href="https://unpkg.com/lightpickr/lightpickr.css" />
<script src="https://unpkg.com/lightpickr/dist/lightpickr.js"></script>
<script>
const picker = new Lightpickr('#my-input' [, options]);
</script>Development
npm install
npm run build
npm testLicense
MIT
