
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@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,764 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.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.