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 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-date-picker-janouy

v0.1.104

Published

A simple React date calendar picker

Downloads

113

Readme

React simple date picker

Description

react-test-janouy is a simple React component that allows you to add a calendar date picker to your React application.

Table of contents

Main features

  • ☀️ Select days
  • 🌎 Localizable into many language
  • 📄 Easy to integrate

Installation

To install react-date-picker-janouy in your project, you can use NPM:

npm i react-date-picker-janouy

NodeJS JavaScript CSS3 HTML5 React

Technologies & dependencies

  • JS
  • CSS
  • React
  • date-fns

Usage

To use Calendar in your React project, you need to import it into your component and use it as a regular React component. Here's an example:


import DatePicker from "react-date-picker-janouy/dist/components/DatePicker";
import { useState } from "react";

function MyComponent() {
    const language = "en";
    const selectedDateFormat = "MM.dd.yyyy";
    const inputStyle = { width: 197, height: 25, fontSize: 13 };
    const [date, setDate] = useState();
    const [isCalendarOpen, setIsCalendarOpen] = useState(false);
    const ariaLabelName = "dateInput";
    const showCalendar = () => {
        setIsCalendarOpen(true);
    };
    const minAgeRequired=18;

  return (
    <div>
       <DatePicker
          isCalendarOpen={isCalendarOpen}
          setIsCalendarOpen={setIsCalendarOpen}
          selectedDate={date}
          setSelectedDate={(date) => setDate(date)}
          language={language}
          selectedDateFormat={selectedDateFormat}
          inputStyle={inputStyle}
          ariaLabelName={ariaLabelName}
          minAgeRequired={minAgeRequired}
      />
	</div>
  );
}

Customizable properties

The following properties can be used to customize the EasyModale component:

  • isCalendarOpen* (boolean): Determines whether the calendar is currently open or not.

  • setIsCalendarOpen* (function): A function that changes the calendarOpen state.

  • selectedDate* (string): A string that represents the date on which the user clicked.

  • setSelectedDate* (function): A function that changes selectedDate's value.

  • language (string): Determinates the calendar's language. (default: 'en'). Click [Here to see supported languages.

  • selectedDateFormat (string): Determinates the selectedDate's format. (default: 'MM.dd.yyyy').

  • inputStyle (object) : Set the input apparence. (default: { width: 100, height: 14, fontSize: 12 };).

  • ariaLabelName (string): If you want to add a personal 'name' && 'aria-label' to your input. (default: dateInput).

  • minAgeRequired (number): For a date of birth, you can add an age of majority. Later dates will be disabled. (default: null).

*required

Supported languages:

  • ar - Arabic
  • az - Azerbaijanian (Azeri)
  • bg - Bulgarian
  • bs - Bosanski
  • ca - Català
  • ch - Simplified Chinese
  • cs - Čeština
  • da - Dansk
  • de - German
  • el - Ελληνικά
  • en - English
  • en-GB - English (British)
  • es - Spanish
  • et - "Eesti"
  • eu - Euskara
  • fa - Persian
  • fi - Finnish (Suomi)
  • fr - French
  • gl - Galego
  • he - Hebrew (עברית)
  • hr - Hrvatski
  • hu - Hungarian
  • id - Indonesian
  • it - Italian
  • ja - Japanese
  • ko - Korean (한국어)
  • kr - Korean
  • lt - Lithuanian (lietuvių)
  • lv - Latvian (Latviešu)
  • mk - Macedonian (Македонски)
  • mn - Mongolian (Монгол)
  • nl - Dutch
  • no - Norwegian
  • pl - Polish
  • pt - Portuguese
  • pt-BR - Português(Brasil)
  • ro - Romanian
  • ru - Russian
  • se - Swedish
  • sk - Slovenčina
  • sl - Slovenščina
  • sq - Albanian (Shqip)
  • sr - Serbian Cyrillic (Српски)
  • sr-YU - Serbian (Srpski)
  • sv - Svenska
  • th - Thai
  • tr - Turkish
  • uk - Ukrainian
  • vi - Vietnamese
  • zh - Simplified Chinese (简体中文)
  • zh-TW - Traditional Chinese (繁體中文)