Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-nepali-datetime-picker

binodnepali211MIT1.0.2TypeScript support: included

A simple and reusable Nepali calendar, date and time picker components for React.

nepali-calendar, nepali-datepicker, nepali-timepicker, nepali-datetime-picker, react-nepali-calendar, react-nepali-datepicker, react-nepali-timepicker, react-nepali-datetime-picker

readme

React Nepali Datetime Picker

Commitizen friendly

This component library is built with React and TailwindCSS, and it is highly customizable to meet the needs of any user. And it aims to provide a comprehensive solution for integrating Nepali calendar functionality into your React applications. It offers a collection of reusable components that will enable seamless date picking, time picking, and datetime picking capabilities.

Components

  • Date Picker: Let's user select nepali calendar date. ✅
  • Time Picker: Let's user select nepali time. ✅
  • DateTime Picker: Let's user select nepali date and time. ✅
  • Static Calendar: Let's user select nepali calendar date without popupover/modal. ✅
  • Static Desktop Time: Let's user select nepali time without popupover/modal. ✅
  • Static Mobile Time: Let's user select nepali time with clock layout and no popupover/modal. 🚧

Demo site link

Before installation

You need to insall Node.js and Tailwind CSS.

Installation

  1. Install react-nepali-datetime-picker
  npm install react-nepali-datetime-picker
  #or
  yarn add react-nepali-datetime-picker
  #or
  pnpm add react-nepali-datetime-picker
  1. Then add nedtTwPlugin to your tailwind.config.js files:
  import {
      nedtTwPlugin,
  } from 'react-nepali-datetime-picker';

  module.exports = {
      //...
      plugins: [nedtTwPlugin()],
  }

Usage

import {
  DatePicker,
  TimePicker,
  DateTimePicker,
  StaticCalendar,
  StaticDesktopTime,
} from 'react-nepali-datetime-picker';

import 'react-nepali-datetime-picker/dist/style.css';

const MyComponent = () => {
  return (
    <>
      <DatePicker />
      <TimePicker />
      <DateTimePicker />
      <StaticCalendar />
      <StaticDesktopTime/>
    </>
  );
};

export default MyComponent;

License

This project is licensed under the MIT License. For more details, see the LICENSE file.

Author

We welcome contributions from the open-source community to help us complete and improve this project. Feel free to create issues, submit pull requests, or reach out to the author for any feedback or questions.

Thank you for your interest in the React Nepali Datetime Picker! Together, we can make it a powerful tool for Nepali calendar integration in React applications.

changelog

Changelog

All notable changes to this project will be documented in this file. See commit-and-tag-version for commit guidelines.

1.0.2 (2025-05-06)

Bug Fixes

  • fix calendar data issue for 2082 (1b67afd)
  • inconsistent months date show in the calendar view for 2082 (5e9fb52)

1.0.1 (2024-04-18)

1.0.0 (2024-04-18)

Bug Fixes

  • incorrect date in 2081 first month calendar view (329850a)

1.0.0-beta.12 (2024-04-18)

Bug Fixes

  • #15: year 2080 last month total days (d01387e), closes #15
  • #15: year 2081 last month days (cdb3f44), closes #15

1.0.0-beta.11 (2024-04-17)

Bug Fixes

  • #13: inconsistent months date show in the calendar view for 2081 (7ad8db8), closes #13

1.0.0-beta.10 (2024-04-17)

Bug Fixes

  • #7: am shown when time is 12 o'clock afternoon (ccc9384), closes #7

1.0.0-beta.9 (2024-03-18)

Bug Fixes

  • bg color overriden by tailwind preflight (b95bd68)

1.0.0-beta.8 (2023-10-04)

Bug Fixes

  • date format (d355996)
  • DesktopDateTimePicker: ui not update when default value changed (c82bcbd)
  • incorrect nepali date (f885ac6)
  • no limit characters check in vomponent input (636c70e)
  • time validation (0a32cae)
  • time validation for 12 hour format (702862c)

1.0.0-beta.7 (2023-09-25)

Bug Fixes

  • no limit characters check in vomponent input (636c70e)
  • time validation (0a32cae)

1.0.0-beta.6 (2023-09-13)

Bug Fixes

  • DesktopDateTimePicker: ui not update when default value changed (c82bcbd)
  • incorrect nepali date (f885ac6)

1.0.0-beta.5 (2023-08-30)

1.0.0-beta.4 (2023-08-30)

1.0.0-beta.3 (2023-08-25)

Features

  • add custom theming and refactor component (8217d81)
  • allow user to set initial value in datetime picker input (a830234)

Bug Fixes

  • return type in get current nepali date (3dff9bc)

1.0.0-beta.2 (2023-08-20)

Bug Fixes

  • disable body scroll when modal is shown in mobile view (ed8cca2)
  • modal position (c95d85c)

1.0.0-beta.1 (2023-08-13)

Bug Fixes

1.0.0-beta.0 (2023-08-12)

Features

Bug Fixes

  • calendar: to show selected date in static calendar (6385064)
  • desktoptime: 12 hour format time selection (45c3ed8)
  • props in desktop datetime picker (8eddf79)

1.0.0-alpha.4 (2023-08-01)

Features

  • add customisation in date and time picker (9016aa9)
  • add customization in timepicker (f0b8744)

1.0.0-alpha.3 (2023-07-29)

Bug Fixes

  • 24 hour format time handling (2136eb0)
  • desktoptimepicker: 24 hour format time handling (4d34b94)
  • modal responsive (0b688db)

1.0.0-alpha.2 (2023-07-28)

Features

  • add desktop time picker (a7a3258)

Bug Fixes

  • datepicker: incorrect month view when date valid after correction (ac2613b)
  • desktoptime: current time not appear in first list (cdf6890)

1.0.0-alpha.1 (2023-07-18)

Bug Fixes

  • datepicker: margin top in mobile (e686860)
  • getting current nepali date in mobile (a4d2756)
  • nepalicalendar: incorrect month view for selected date (9bd8dcc)

1.0.0-alpha.0 (2023-07-17)

Features

  • add date input, validation and improve style (eb73b1f)
  • datepicker: allow date typing and selection (fa5b3c5)
  • modal to show date picker in mobile and desktop view (f15faa4)

Bug Fixes

  • date mapping with week day in the month and current day calc (567a919)
  • datepicker: incorrect month view in calendar (70ccbaa)
  • selection of date which is not part of current month view in calendar (01e301a)