Skip to content
Date and time, light
Light
Date and time, dark
Dark

Every state

  • Date and time, default, light
    Date and time, default, dark

    default

  • Date and time, focus, light
    Date and time, focus, dark

    focus

  • Date and time, open, light
    Date and time, open, dark

    open

  • Date and time, filled, light
    Date and time, filled, dark

    filled

  • Date and time, error, light
    Date and time, error, dark

    error

  • Date and time, disabled, light
    Date and time, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"appointment"Id of the date button; label, panel and summary hang off it.
namestring"appointment"Form name of the combined value (yyyy-mm-ddThh:mm).
labelstring"Appointment"The field's visible label.
descriptionstring–Help line under the field.
todayDate–Today's date; defaults to the real today. Earlier days are disabled.
defaultValuestring–Value at the start: yyyy-mm-ddThh:mm, or yyyy-mm-dd for a date only.
opensstring"09:00"First time on offer (hh:mm).
closesstring"17:30"Closing time (hh:mm); the last slot starts one step before.
stepnumber15Minutes between times.
closedDaysnumber[][0]Weekdays that are closed (0 = Sunday), disabled in the calendar.
datePlaceholderstring"Choose a date"Date button text before a date is chosen.
timePlaceholderstring"Time"Select text before a time is chosen.
joinerstring"at"Word between date and time in the summary.
localestring"en-GB"Locale for dates and times.
onValueChange(value: string) => void–Called with yyyy-mm-ddThh:mm once both parts are chosen.
requiredboolean–Requires a time before the form submits.
disabledboolean–Disables both parts.
errorstring–Error message; marks both parts invalid.
classNamestring–Extra classes on the field.

More date pickers

All 10
date-picker-03 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