@khorshid-js/vue
v0.1.0
Published
Idiomatic Vue 3 bindings for Khorshid — composables + styled components for the Jalali & Gregorian date picker.
Maintainers
Readme
@khorshid-js/vue
Vue 3 bindings for Khorshid, a date picker with Jalali, Gregorian and Hijri calendars. The package has composables and ready-made components.
npm install @khorshid-js/vue @khorshid-js/core @khorshid-js/dom<script setup lang="ts">
import { ref } from 'vue';
import { DatePicker } from '@khorshid-js/vue';
import '@khorshid-js/vue/styles.css';
const date = ref('2026-03-21');
</script>
<template>
<DatePicker v-model="date" locale="fa-IR" />
</template>Supports Vue 3.4 and later. vue, @khorshid-js/core and @khorshid-js/dom are peer dependencies.
Most apps should install khorshid, which bundles every layer behind one import. Use the scoped packages when you want only some of them.
MIT
