DatePicker

v2.0.2
duplicate

It is based on the react-datepicker library. Note: Pass a value of null if you don't want the default value of Date.now().

Install and import

Simple use case

Pass props from the original library.

Give an Icon

fr locale

Properties

NameType(s)DefaultRequired
autoFocus
bool
dateFormat
string
dd/MM/yyyy
disabled
bool
endYear
number
DEFAULT_DATE.getFullYear()
icon
union
iconPlacement
right
left
left
inputRef
func | shape
locale
object
onBlur
func
onChange
func
onFocus
func
placeholder
string
popperProps
object
size
sm
md
lg
lg
startYear
number
1900
useWeekdaysShort
bool
true
value
number | object | string
DEFAULT_DATE

Dependencies

Peer dependencies