
Product
Introducing Socket Scanning for OpenVSX Extensions
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
@paprika/date-input
Advanced tools
The DateInput component allows users to enter and display a date.
yarn add @paprika/date-input
or with npm:
npm install @paprika/date-input
| Prop | Type | required | default | Description |
|---|---|---|---|---|
| hasError | bool | false | false | If the value of <input> is valid or not. |
| dateFormat | string | false | "MM/DD/YYYY" | Date format used while entering and parsing user input. |
| date | instanceOf | false | null | Selected date in moment object. |
| humanFormat | string | false | undefined | Date format used while displaying date. It should be human-friendly and spelled out, default is MMMM DD,YYYY |
| onChange | func | false | () => {} | Callback when date is inputed. Will be called on blur or enter key press. |
| onChangePossibleDate | func | false | () => {} | Callback when user inputs date. Will be called after every key up event. |
| onError | func | false | () => {} | Error callback. Will be called on blur or enter key press if inputted date can't be parsed. |
| onClick | func | false | () => {} | Callback to be executed when the dateInput is clicked or activated by keyboard. |
| denyConfirmation | func | false | () => false | Guard function. If it returns true - confirmation will be prevented. |
| beforeConfirmation | func | false | () => {} | Callback when confirm |
import DateInput from "@paprika/date-input";
<DateInput dateFormat="MM/DD/YYYY" />;
Note: Please use <L10n /> component to wrap <DateInput /> in your application.
FAQs
The DateInput component allows users to enter and display a date.
The npm package @paprika/date-input receives a total of 1,302 weekly downloads. As such, @paprika/date-input popularity was classified as popular.
We found that @paprika/date-input demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

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.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies