DateInput

Polyfills

This component requires some polyfills for Web API in order for it work properly in all browsers. See this table.

Props

NamePropTypeRequiredDefault ValueAllowed ValuesDescription
dayLabelstringfalse
disabledboolfalsefalse
idstringfalse
modeenumfalseDateMode.DAY_MONTH_YEAR
  • day-month-year
  • month-year
monthFormatenumfalseMonthFormat.LONG
  • long
  • short
monthLabelstringfalse
onBlurfuncfalsenull
onChangefunctrue
onFocusfuncfalsenull
placeholdersshapefalse[{"day":"node"},{"month":"node"},{"year":"node"}]
sizeenumfalseSize.MEDIUM
  • sm
  • md
  • lg
valueunionfalsenull
  • string
  • instanceOf
yearLabelstringfalse
Edit these docs on Github