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-date-picker-calendar

v1.0.9

Published

react calendar for picking dates and displaying events

Readme

React Date Picker Calendar

A React calendar component used for picking a date and displaying events on days. It is extremely simple, yet has extensive customizability to fit your needs.

Getting Started

To install this package into your project run npm install --save react-date-picker-calendar

Usage

A simple calendar component will use the following code

import React from 'react';
import Calendar from 'react-date-picker-calendar';

const App = () => (
  <div>
    <Calendar />
  </div>
);

export default App;

For more customization use the props

import React from 'react';
import Calendar from 'react-date-picker-calendar';

const App = () => (
  <div>
    <Calendar 
      onChange={(val) => {console.log(val)}}
      selectedDate={new Date('Dec 18 2018')}
      selectedMonth={new Date('Dec 18 2018')}
      eventDates={[
        new Date('Dec 13 2018'),
        new Date('Dec 21 2018'),
        new Date('Dec 24 2018')
      ]}
      minDate={new Date('Dec 10 2018')}
      maxDate={new Date('Jan 3 2019')}
      customStyles={{
        header: { paddingBottom: 10 },
        title: { textTransform: 'uppercase' },
        prev: { paddingLeft: 30, color: 'blue' },
        next: { paddingRight: 30, color: 'lightblue' },
        daysRow: { background: '#bbb' },
        days: { color: 'white' },
        body: { background: 'lightyellow' },
        numberRow: { padding: '0 20px', boxSizing: 'border-box' },
        cell: { paddingTop: 10 },
        innerCell: { borderRadius: 5 },
        number: { fontSize: 16 },
        selected: { background: 'purple' },
        event: { background: 'teal', color: 'white' },
        extra: { color: 'green' },
        outOfRange: { color: 'red', fontWeight: '400' }
      }}
    />
  </div>
);

export default App;

Documentation

| Prop Name | Type | Defualt | Description | |-----------|------|---------|-------------| | onChange | Function | (val) => {} | Pass your own function that recieves the new value as a prop | | selectedDate | Date | new Date() | The starting date of the calendar view, defaults to today | | selectedMonth | Date | new Date() | The starting month of the calendar view, defaults to today | | eventDates | Array| [] | An array of event dates to render on calendar as events | | minDate | Date | undefined | A minimum date for date selection purposes | | maxDate | Date | undefined | A maximum date for date selection purposes | | customStyles | Object | { header: {}, title: {}, prev: {}, next: {}, days: {}, daysRow: {}, body: {}, numberRow: {}, cell: {}, innerCell: {}, number: {}, selected: {}, event: {}, disabled: {}, outOfRange: {}} | A custom style object for every single element in the calendar

Demo app

Is located inside src/demo directory, here you can test your library while developing

To get a demo running locally, in the root directory of the project run npm start