Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@paprika/date-input

Package Overview
Dependencies
Maintainers
4
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paprika/date-input

The DateInput component allows users to enter and display a date.

latest
Source
npmnpm
Version
4.0.2
Version published
Weekly downloads
2.2K
-9.56%
Maintainers
4
Weekly downloads
 
Created
Source

@paprika/date-input

Description

The DateInput component allows users to enter and display a date.

Installation

yarn add @paprika/date-input

or with npm:

npm install @paprika/date-input

Props

DateInput

PropTyperequireddefaultDescription
hasErrorboolfalsefalseIf the value of <input> is valid or not.
dateFormatstringfalse"MM/DD/YYYY"Date format used while entering and parsing user input.
dateinstanceOffalsenullSelected date in moment object.
humanFormatstringfalseundefinedDate format used while displaying date. It should be human-friendly and spelled out, default is MMMM DD,YYYY
onChangefuncfalse() => {}Callback when date is inputed. Will be called on blur or enter key press.
onChangePossibleDatefuncfalse() => {}Callback when user inputs date. Will be called after every key up event.
onErrorfuncfalse() => {}Error callback. Will be called on blur or enter key press if inputted date can't be parsed.
onClickfuncfalse() => {}Callback to be executed when the dateInput is clicked or activated by keyboard.
denyConfirmationfuncfalse() => falseGuard function. If it returns true - confirmation will be prevented.
beforeConfirmationfuncfalse() => {}Callback when confirm

Usage

import DateInput from "@paprika/date-input";

<DateInput dateFormat="MM/DD/YYYY" />;

Note: Please use <L10n /> component to wrap <DateInput /> in your application.

  • Storybook Showcase
  • GitHub source code
  • Create GitHub issue
  • CHANGELOG

FAQs

Package last updated on 29 Mar 2025

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