npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@theoneabove0/nepalidatepicker-react

v0.1.4

Published

Thin React wrappers for nepalidatepicker datepicker core.

Readme

@theoneabove0/nepalidatepicker-react

npm version License: MIT

A lightweight, fully customizable Nepali date picker for React. Built for BS dates from the ground up, with shared calendar logic that avoids the common month/day mismatches found in many Nepali date picker implementations.

Live Demo & Documentation · npm Package · GitHub

React Nepali Date Picker Demo

Installation

The package can be installed via npm:

npm install @theoneabove0/nepalidatepicker-react @theoneabove0/nepalidatepicker react react-dom

Or via yarn:

yarn add @theoneabove0/nepalidatepicker-react @theoneabove0/nepalidatepicker react react-dom

You'll need to install React and React DOM separately since those dependencies aren't included in the package.

Basic Configuration

Below is a simple example of how to use the DatePicker in a React view. The most basic use of the DatePicker can be described with:

import { useState } from 'react';
import { DatePickerInput } from '@theoneabove0/nepalidatepicker-react';
import '@theoneabove0/nepalidatepicker-react/style.css';
import { CalendarDays, ChevronDown } from 'lucide-react';

export function App() {
  const [value, setValue] = useState(null);

  return (
    <DatePickerInput
      label="Pick date"
      placeholderText="Pick date"
      leftSection={<CalendarDays size={16} />}
      rightSection={<ChevronDown size={16} />}
      value={value}
      onChange={setValue}
      min="2082-01-01"
      max="2084-12-30"
    />
  );
}

The base NepaliDatePicker also supports input popup mode by default and inline calendar mode with inline.

See the main website for a full list of props that may be passed to the component.

Time Picker

You can also include a time picker or use a standalone time picker.

import { useState } from 'react';
import { DateTimePicker, TimePicker } from '@theoneabove0/nepalidatepicker-react';

export function DateTimeExample() {
  const [value, setValue] = useState({
    date: { year: 2083, month: 1, day: 30 },
    time: '15:22',
  });

  return (
    <DateTimePicker
      label="Pick date and time"
      placeholderText="Pick date and time"
      firstDayOfWeek={0}
      timeFormat="12h"
      value={value}
      onChange={setValue}
    />
  );
}

export function TimeExample() {
  return <TimePicker label="Pick time" format="24h" withSeconds />;
}

Customization

Available components to import:

  • DatePicker, DatePickerInput, DateInput
  • DateTimePicker
  • MonthPicker, MonthPickerInput
  • YearPicker, YearPickerInput
  • TimePicker, TimeInput
  • Calendar

Common Customization Props

  • typeable (allow typing date directly in input mode)
  • size ("sm" | "md" | "lg" | "xl" | number)
  • monthNames, weekdayNames, weekdayShortNames
  • clearable / isClearable
  • includeDates, excludeDates, holidays, filterDate
  • min / max
  • firstDayOfWeek (0-6, where 0 is Sunday)
  • numeralSystem (Easily switch between Devanagari and English numerals)
<DatePickerInput
  value={value}
  onChange={setValue}
  label="Holiday dates"
  holidays={[
    { date: '2083-01-01', label: 'New year', className: 'holiday-accent' },
    { date: '2083-01-15', label: 'Office closed', disabled: true },
  ]}
/>

Styling API

Easily customize the look and feel using CSS variables, inline styles, or class names:

<DatePickerInput
  variables={{
    '--nepali-date-picker-accent': '#c97012',
    '--nepali-date-picker-input-radius': '18px',
    '--nepali-date-picker-calendar-radius': '22px',
  }}
  styles={{
    inputShell: { paddingInline: '4px' },
    day: { borderRadius: '14px' },
  }}
  classNames={{
    calendar: 'brand-calendar',
    day: 'brand-day',
  }}
/>

Browser Support & Note

All grid/navigation/constraint logic is delegated to @theoneabove0/nepalidatepicker/datepicker-core, ensuring consistent and bug-free date math across environments. The date picker is compatible with all modern browsers.

License

Copyright (c) 2024-Present and individual contributors. Licensed under Apache-2.0 license.