Skip to content

Installation

Install from npm for bundled apps, or drop in the CDN build for a plain HTML page. The snippet below follows the Framework switch — your choice is remembered across every page of these docs.

Framework
npm install nepali-datepicker-pro

Then import the stylesheet once, anywhere in your app:

ts
import 'nepali-datepicker-pro/style.css';

The stylesheet is theme-aware (light/dark) and everything is namespaced under .ndp-*, so it won't collide with your app's CSS.

Entry points

The package ships one entry point per stack, so bundlers only pull in what you actually use:

ImportUse for
nepali-datepicker-proCore mount functions and helpers (ES)
nepali-datepicker-pro/vueVue 3 components with v-model
nepali-datepicker-pro/reactReact components
nepali-datepicker-pro/jqueryThe jQuery plugin methods
nepali-datepicker-pro/style.cssThe stylesheet

The UMD build (dist/nepali-datepicker-pro.umd.cjs) exposes everything on a global NepaliPicker for <script>-tag pages.

Requirements

  • Node ≥ 18 for the build tooling (the runtime itself has no Node dependency)
  • Peer dependencies are all optional — install only the framework you use: vue ≥ 3, react/react-dom ≥ 18, or jquery ≥ 3

Next steps

Released under the MIT License.