Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

litepie-datepicker

kenhyuwa7.5kMIT1.0.14TypeScript support: included

A date range picker component for Vue.js and Tailwind CSS, dependent to day.js

litepie-datepicker, vue-datepicker, vue-daterangepicker, vue-daterange-picker, tailwind-datepicker, tailwind-daterange-picker

readme

Litepie Datepicker

Litepie Datepicker is a date range picker component for Vue.js and Tailwind CSS, dependent to day.js.


Documentation

For full documentation, visit litepie.com.

Simple Usage

How it works,

<template>
  <div>
    <litepie-datepicker
      ref="myRef"
      :formatter="formatter"
      v-model="dateValue"
    />
  </div>
</template>

<script>
import { ref } from 'vue';
import LitepieDatepicker from 'litepie-datepicker';

export default {
  components: {
    LitepieDatepicker
  },
  setup() {
    const myRef = ref(null);
    const dateValue = ref([]);
    const formatter = ref({
      date: 'DD MMM YYYY',
      month: 'MMM'
    });

    return {
      myRef,
      dateValue,
      formatter
    };
  }
};
</script>

Theming options

  • Light mode

    Light mode

  • Dark mode

    Dark mode

Changelog

All notable changes to this project will be documented in this file, Read.

License

The MIT License. Please see for more information.

Thanks to

changelog

Changelog

All notable changes to this project will be documented in this file.


Released

1.0.0

  • First release.

    1.0.1

  • Make stable release.

1.0.2

  • Expose placeholder, clear function to slot, work if using slot, Example.

1.0.3

  • Fix typo inRangeDateBetween.

1.0.4

  • Fixed shortcuts if custom, Example.

1.0.5

  • Added dayjs customParseFormat plugin, to correctly parse from formatter props (#3).
  • Added keyboard event keyup for update value (#5).

1.0.6

  • New props footer, Example.
  • Redesign layout, for breakpoint 768 ~ 1024.
  • Hide Next/Prev button if months active.

1.0.7

  • Fix some style.

1.0.8

  • Add localization for shortcuts, footer & dayjs locale.
  • New props i18n, Example.
  • Change local model value to pickerValue.
  • Fix issues placement arrow, left to right.

1.0.9

  • Props footer removed.
  • Fix localization
  • Fix bug auto-apply if shortcuts clicked.
  • Add new props options, Example.

1.0.10

  • Fix bug start-from if using localization.

1.0.11

  • Added trigger emit on keyup event.

1.0.12

  • Fix issues localization lazy load.

1.0.13

  • Fix issues dynamic import on Vite (#12).

1.0.14

  • Fix issues on keyup (#15).