@litopis/vue
| Install | |
|---|---|
npm install @litopis/vue |
|
| Latest Version: | 0.5.0 |
| Vue: | 3 |
| License: | Apache-2.0 |
| Last Updated: | Oct 22, 2026 |
| Links: | GitHub · npm |
@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
A simple Vue.js datepicker component. Supports disabling of dates, inline mode,...
A simple Vue.js datepicker component. Supports disabling of dates, inline mode,...
A simple Vue.js datepicker component. Supports disabling of dates, inline mode,...
A simple Vue.js datepicker component. Supports disabling of dates, inline mode,...
A simple Vue.js datepicker component. Supports disabling of dates, inline mode,...
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 |