🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

react-ymd-date-select

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-ymd-date-select

Helper hooks and components for Y-M-D dropdowns with React

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

react-ymd-date-select

Test and Build npm npm bundle size NPM

Hooks and components for Y-M-D dropdowns with React. Demo

The Y-M-D dropdown UI is sometimes preferable to calendar widgets, e.g. birth date selection.

Building Y-M-D looks simple, but actually, there are some nuts;

  • Generating the arrays of year, month, and day numbers and strings.
  • Validating combinations of the Y-M-D values.
  • Combining the 3 values from the dropdowns into one date value, and integrating it with the form component state.

This library manages these things.

Installation

With npm:

npm install react-ymd-date-select

With Yarn:

yarn add react-ymd-date-select

API & Samples

Please see the demo page for the guide and samples.

Support the project

ko-fi

Buy Me A Coffee

GitHub Sponsors

Keywords

date

FAQs

Package last updated on 29 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts