0.6.0 • Published 4 years ago

@pndr/date-input v0.6.0

Weekly downloads
15
License
MIT
Repository
-
Last release
4 years ago

DateInput

npm package

Used for entering dates.

Getting started

npm install @cmds/date-input --save

Prop Types

PropertyTypeRequired?Description
classNameStringAdd a className to the input
valueStringDates are handled as ISO String values: 2020-01-24T12:00:41.021Z
disabledBooleanDisables input. Default: false
includeTimeBooleanWhether or not to include time. Default: true
sameTimeZoneBooleanWhether the user is editing an UTC date or their local date. Default: false
dateFormatStringWhich date format to use for date parsing. Default: D/M/YYYY. See Date Formatting.
datePlaceholderStringWhich placeholder to use for the date input. Default: dd/mm/yyyy. See Date Formatting.
timeFormatStringWhich time format to use for date parsing. Default: HH:mm. See Date Formatting.
timePlaceholderStringWhich placeholder to use for the time input. Default: hh:mm. See Date Formatting.
onChangeFunctionTriggers when the date changes: ({value: string})

Date Formatting

For date formats go to https://momentjs.com

More information

This component is designed and developed as part of Cosmos Design System.

0.6.0

4 years ago

0.5.0

4 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago