nepali-datepicker-vue
A Vue 3 Nepali Datepicker with TypeScript Support
2,688
1
| Install | |
|---|---|
npm install nepali-datepicker-vue |
|
| Latest Version: | 2.0.1 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Aug 11, 2026 |
| Links: | GitHub · npm |
Maintainer: sandip-ghimire
Nepali Date Picker (Vue 3) 🇳🇵
A professional, feature-rich Nepali (Bikram Sambat) date picker component for Vue 3. Built with modern Composition API and TypeScript, providing a seamless and accessible date selection experience.
📚 Full Documentation
For advanced usage, examples, and full API reference, visit the official documentation: 👉 https://nepalidatepicker.sandip-ghimire.com.np/
✨ Features
- Vue 3 Optimized: Built specifically for Vue 3 using the Composition API.
- Smart Positioning: Automatically detects viewport space to position the calendar above or below the input.
- Teleport Rendering: Renders the calendar popup at the body level to avoid clipping by parent containers.
- Date Constraints: Support for
minDateandmaxDaterestrictions. - Interactive Formatting: Auto-formats input as you type (
YYYY-MM-DD). - Rich UI: Highlighting for Today, Saturdays, and out-of-range dates.
- TypeScript Support: Full type definitions included for a better developer experience.
- Highly Customizable: Easily override styles with custom CSS classes.
🚀 Installation
npm install nepali-datepicker-vue
# or
pnpm add nepali-datepicker-vue
Import Styles
Import the required CSS in your entry file (e.g., main.ts or App.vue):
import "nepali-datepicker-vue/main.css";
📖 Usage
Basic Example
<script setup>
import { ref } from "vue";
import { NepaliDatePicker } from "nepali-datepicker-vue";
const selectedDate = ref("");
</script>
<template>
<NepaliDatePicker v-model="selectedDate" placeholder="Select Nepali Date" />
</template>
With Date Range
<template>
<NepaliDatePicker v-model="date" minDate="2080-01-01" maxDate="2085-12-30" />
</template>
🛠 Props
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue |
string |
'' |
v-model binding (BS date in YYYY-MM-DD) |
minDate |
string |
'' |
Minimum selectable date |
maxDate |
string |
'' |
Maximum selectable date |
yearSelect |
boolean |
true |
Show year dropdown |
monthSelect |
boolean |
true |
Show month dropdown |
placeholder |
string |
'' |
Input placeholder |
disabled |
boolean |
false |
Disable the picker |
highlightSaturday |
boolean |
false |
Highlight Saturdays in red |
miniEnglishDate |
boolean |
false |
Show AD day number in cells |
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
MIT © Sandip Ghimire
Related Packages
nepali-datepicker-pro
Framework-agnostic, accessible Nepali BS/AD date, date-time, range, month, year,...
2,314
1
drp-datepicker
drp-datepicker — Bikram Sambat (BS) ↔ Gregorian (AD) date conversion engine + a...
1,312
0
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.0.1 | ^3.5.27 | MIT | |
| 2.0.0 | ^3.5.27 | MIT | |
| 1.1.13 | ^3.5.27 | MIT | |
| 1.1.0 | ^3.5.13 | MIT | |
| 1.0.12 | ^3.5.25 | MIT | |
| 1.0.11 | ^3.5.20 | MIT | |
| 1.0.10 | ^3.5.20 | MIT | |
| 1.0.9 | ^3.5.20 | MIT | |
| 1.0.8 | ^3.5.18 | MIT | |
| 1.0.7 | ^3.5.13 | MIT | |
| 1.0.6 | ^3.5.13 | MIT | |
| 1.0.5 | ^3.5.13 | MIT | |
| 1.0.4 | ^3.5.13 | MIT | |
| 1.0.3 | ^3.5.13 | MIT | |
| 1.0.2 | ^3.5.13 | MIT | |
| 1.0.1 | ^3.5.13 | MIT | |
| 1.0.0 | ^3.5.13 | MIT |