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

react-mui-datepicker

v3.0.3

Published

The Date Picker component lets the user select a date and supported to Gregorian Calendar and Hijri(Umm Al-Qura) Calendar.

Readme

React MUI Datepicker

The Date Picker component lets the user select a date and supported to Gregorian Calendar and Hijri(Umm Al-Qura) Calendar.

This package relay on MUI and moment hijri

Version 3.0.0 Refactor

Version 3.0.0 of react-mui-datepicker is a major refactor that brings significant improvements and changes to the package:

  • Complete Codebase Refactor: The entire codebase has been restructured for better maintainability, performance, and scalability.
  • Improved Calendar Support: Enhanced support for both Gregorian and Hijri (Umm Al-Qura) calendars, with seamless switching between them.
  • Modern React & MUI Integration: Updated to work with the latest versions of React (v19+) and MUI, ensuring compatibility and leveraging new features.
  • TypeScript Support: The package is now fully written in TypeScript, providing better type safety and developer experience.
  • Accessibility Enhancements: Improved accessibility features to ensure the datepicker is usable for all users.
  • Customizable & Themed: Easier customization and theming, with better integration for custom styles and MUI themes.
  • Simplified API: The component props and usage have been streamlined for a more intuitive developer experience.
  • Performance Optimizations: Reduced bundle size and improved rendering performance.

How to use

You can now import DatePicker as a normal package installed from npm like so:

import {DatePicker} from 'react-mui-datepicker'

const App = () => <DatePicker  />;

export default App;

to switch between calendars

import {DatePicker} from 'react-mui-datepicker'

const App = () => <DatePicker  showSwitch />;

export default App;

Using with Styles

To include the default styles for the datepicker, import the CSS file in your project:

import {DatePicker} from 'react-mui-datepicker'
import 'react-mui-datepicker/style.css'

const App = () => <DatePicker  showSwitch />;

export default App;

Available props

The React MUI Datepicker component accepts the following props:

| Prop | Type | Description | | --------------- | ------------------------------------------------------------ | ---------------------------- | | lang | ar | en (optional) | default: en | | dir | rtl | ltr (optional) | | | maxDate | Date (optional) | | | minDate | Date (optional) | | | disabled | boolean (optional) | | | value | string | PickerValue | Date | | | placeholder | string (optional) | | | onChange | (date: string | PickerValue) => void | | | defaultToToday | boolean (optional) | | | showSwitch | boolean (optional) | | | defaultCalendar | gregrian | hijri (optional) | default: gregrian | | switchLabel | string (optional) | | | variant | default | outline | lighter (optional) | | | colors | default | success | destructive (optional) | working with outline variant | | size | default | sm (optional) | | | rounded | default | full (optional) | | | momentFormat | ((lang?: ar | en, calendar?: hijri | gregorian) => string) | |

License

react-mui-datepicker is available under the MIT license