Renders an input with drop down date picker.
<Datepicker
onSelect={(date) => {
console.log(date.toString());
}}
/>
placeholder={string}}
Text to display in the input field until a value is chosen.
date={Date}
The initial date to display. Defaults to now.
days={array}
Days of the week, e.g. 'Sunday', 'Monday', etc. Defaults to the English spelling.
months={array}
Months of the year, e.g. 'January', 'February', etc. Defaults to the English spelling.
onSelect={function}
Called when a date is chosen. Receives a Date
object with the chosen date.
Adds dp-datepicker
to the root element.