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-awesome-datepickers

v1.0.2

Published

awesome datepickers for react apps

Readme

React-awesome-datepickers

A simple, lightweight datepicker library for your awesome react app.

Usage:

npm install react-awesome-datepickers
  • Basic

import { useState } from 'react';
import { MaterialPicker } from 'react-awesome-datepickers';

const Picker = () => {
   const [date, setDate] = useState<Date>(initialSelectedDate => can be undefined, null, or an actual date);
   
   return <MaterialPicker onDateSelect={setDate} />
}
  • RangePicker

import { useState } from 'react';
import { MaterialPicker, RangeDates } from 'react-awesome-datepickers';

// RangeDates => {
    startDate: null | Date | undefined
    endDate: null | Date | undefined 
}

const Picker = () => {
    const [range, setRange] = useState<RangeDates>({});
    
    return <MaterialPicker range onDateRangeChange={setRange} dateRange={range} />
}

API

nextButton?: ReactElement => element to provide instead of the default provided svg


prevButton?: ReactElement => element to provide instead of the default provided svg


range?: boolean => picker is of type range


hideNavigationButtons?: boolean


nextButtonWrapperClassName?: string => buttons are wrapped on a div wrapper with a onClick callback


prevButtonWrapperClassName?: string => buttons are wrapped on a div wrapper with a onClick callback


initialSelectedDate?: Date | null => initial selected date


initialMonthPosition?: Date => initial month position on the datepicker


dateRange?: RangeDates => if picker type range => pass this from state to keep the picker updated


dayClassName?: string => base day className


selectedClassName?: string => className to provide on the selected date, with the base class


disabledClassName?: string => className to provide on the disabled date, with the base class


notThisMonthClassName?: string => className to provide on the dates present on the month, but of the prev/next month, with the base class


inRangeClassName?: string => className to provide on the dates in between the startDate and endDate when picker typeof range, with the base class


inRangeHoverClassName?: string => className to provide on the dates in between the startDate and endDate when picker typeof range, when the endDate is not selected with the base class


lastInRangeClassName?: string => className to provide on the selected endDate, on input type range date, with the base class


firstInRangeClassName?: string => className to provide on the selected startDate, on input type range date, with the base class


wrapperClassName?: string => className to provide on the wrapper element, with the base class


startFrom?: Date => if passed the dates before this date will be disabled


endFrom?: Date => if passed the dates after this date will be disabled


showNotThisMonthDays?: boolean => show dates which are not of this month


selectedDate: Date | null | undefined


range?: boolean


onDateSelect?: (date: Date) => void => callback to update the state of the parent component


changeMonthIfDateOutside?: boolean => if you click on the dates from the next month, present in the current month shown, should it move to the next date


onPositionChanged?: (position: Date) => void => used if you want to keep track of the current position shown on the screen


onDateRangeChange?: (range: RangeDates) => void => called when picker typeof range and endDate or startDate is selected


dateRange: RangeDates => passed from parent to update the internal state when picker typeof range

TODO

  • add pickers from other design systems
  • performance improvements