Skip to content
Natural date field, light
Light
Natural date field, dark
Dark

Every state

  • Natural date field, default, light
    Natural date field, default, dark

    default

  • Natural date field, focus, light
    Natural date field, focus, dark

    focus

  • Natural date field, parsed, light
    Natural date field, parsed, dark

    parsed

  • Natural date field, ambiguous-or-error, light
    Natural date field, ambiguous-or-error, dark

    ambiguous-or-error

  • Natural date field, open, light
    Natural date field, open, dark

    open

  • Natural date field, disabled, light
    Natural date field, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"start-date"Id of the text input; preview, error and panel hang off it.
namestring"start"Form name of the parsed date (yyyy-mm-dd).
labelstring"Start date"The field's visible label.
todayDate–Today's date; defaults to the real today. Words like "tomorrow" count from it.
defaultValuestring–Text in the field at the start; its result or error shows at once.
placeholderstring"e.g. next friday"Placeholder text.
examplesstring[]["tomorrow", "next friday", "in 3 days", "12 dec"]Examples in the hint and the error.
calendarLabelstring"Pick from a calendar"Accessible name of the calendar button.
localestring"en-GB"Locale of the written-out date; also sets day/month order for "3/4".
onValueChange(value: string) => void–Called with yyyy-mm-dd when an entry is read (on Enter, blur or pick).
requiredboolean–Requires an entry before the form submits.
disabledboolean–Disables the field and its calendar button.
errorstring–Error message from outside; replaces the "can't read" error.
classNamestring–Extra classes on the field.

More date pickers

All 10
date-picker-06 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans