@litopis/vue

Vue components for Litopis date and calendar primitives.
1,144 3
Install
npm install @litopis/vue
Latest Version:0.5.0
Vue:3
License:Apache-2.0
Last Updated:Oct 22, 2026
Links: GitHub  ·  npm
Maintainer: dschewchenko

@litopis/vue

Vue adapter for the Litopis date picker.

npm install @litopis/vue vue
<script setup lang="ts">
import { ref } from "vue";
import { LitopisDatePicker, type LitopisDateValue } from "@litopis/vue";
import "@litopis/dom/styles/base.css";

const date = ref<LitopisDateValue | null>(null);
</script>

<template>
  <LitopisDatePicker v-model="date" mode="popover" label="Start date" />
</template>

Use the input slot to provide your own input component or element:

<LitopisDatePicker v-model="date" mode="popover" label="Start date">
  <template #input>
    <input class="my-input" placeholder="Choose a date" />
  </template>
</LitopisDatePicker>

For a split range, use the input and end-input slots.

See the Vue integration guide for component props, v-model and component refs.

For a range, bind a LitopisDateRange with v-model, then set selection="range", name for synchronized native form values.

Use disabled-dates for reactive availability snapshots or is-date-disabled for a synchronous predicate. The picker emits visible-month-change with the first day whenever the displayed month changes, including after navigation or selection (not on initial render), so an application can load another availability window. Unavailable dates cannot be selected by pointer, keyboard, typed input or controller methods. A complete range is rejected when it contains any unavailable day.

<script setup lang="ts">
import { ref } from "vue";
import type { LitopisDateValue } from "@litopis/vue";

const appointment = ref<LitopisDateValue | null>(null);
const disabledDates = ref<LitopisDateValue[]>([]);

function loadAvailability(month: LitopisDateValue): void {
  // Replace disabledDates.value with the availability for this month.
}
</script>

<template>
  <LitopisDatePicker
    v-model="appointment"
    :disabled-dates="disabledDates"
    @visible-month-change="loadAvailability"
  />
</template>

Related Packages

vuejs-datepicker

A simple Vue.js datepicker component. Supports disabling of dates, inline mode,...

3,505,193 2,584
@hokify/vuejs-datepicker

A simple Vue.js datepicker component. Supports disabling of dates, inline mode,...

20,022 17
vuejs-datepicker-thai

A simple Vue.js datepicker component. Supports disabling of dates, inline mode,...

3,057 0
vue-moment-datepicker

A simple Vue.js datepicker component. Supports disabling of dates, inline mode,...

2,763 0
@mkopinsky/vuejs-datepicker

A simple Vue.js datepicker component. Supports disabling of dates, inline mode,...

2,686 2,584

Version History

Version Released Vue License
0.5.0 >=3.4.0 Apache-2.0
0.4.0 >=3.4.0 Apache-2.0
0.3.0 >=3.4.0 Apache-2.0
0.2.0 >=3.4.0 Apache-2.0
0.1.0 >=3.4.0 Apache-2.0
Pre-releases (1)
Version Released Vue License
0.1.0-next.0 >=3.4.0 Apache-2.0