Datepicker

inprogress

    Overview

    When to use

    t.b.d.

    When to consider an alternative

    t.b.d.


    Component

    Default

    Format

    State

    shouldOpenCalendar

    Four options for open calendar:

    • ClickOrFocus which is default
    • buttonClick which toggles the calendar on icon click only
    • focus which toggles on input focus only
    • noCalendar

    Properties

    Default

    PropertyTypeRequiredDefaultDescription
    utilClassNamesStringfalse-
    childrenNodefalse-
    componentRefShape
    { "current": "Any" }
    false-
    idStringfalse-
    onChangeFuncfalse-
    valueInstanceof
    Class(Date)
    false-
    formatStringfalsedd/MM/yInput format based on [Unicode Technical Standard #35](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table). Supported values are: y, M, MM, MMM, MMMM, d, dd
    maxDateInstanceof
    Class(Date)
    false-
    minDateInstanceof
    Class(Date)
    false-
    disabledBoolfalse-
    errorBoolfalse-
    shouldOpenCalendarEnum
    null │ null │ null │ null
    false[buttonClick, focus]