Skip to content
Time slot grid, light
Light
Time slot grid, dark
Dark

Every state

  • Time slot grid, default, light
    Time slot grid, default, dark

    default

  • Time slot grid, focus, light
    Time slot grid, focus, dark

    focus

  • Time slot grid, slot-chosen, light
    Time slot grid, slot-chosen, dark

    slot-chosen

  • Time slot grid, full, light
    Time slot grid, full, dark

    full

  • Time slot grid, loading, light
    Time slot grid, loading, dark

    loading

  • Time slot grid, error, light
    Time slot grid, error, dark

    error

  • Time slot grid, disabled, light
    Time slot grid, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"slot"Id prefix for the slots and the status line.
namestring"appointment"Form name of the hidden local date-time, yyyy-mm-ddThh:mm.
getSlots(date: Date) => DatePickerTimeSlot[] | Promise<DatePickerTimeSlot[]>–The slots (time, available) for a day; may return a promise. The default makes up a small practice's diary.
defaultDatestring–The day shown at the start, ISO yyyy-mm-dd; defaults to today.
defaultTimestring–The time chosen at the start, e.g. "10:30".
closedDaysnumber[][0, 6]Weekdays that are closed, 0 = Sunday.
loadingboolean–Shows the slots as loading.
todayDate–Today's date; defaults to the real today. Days before it are closed.
localestring"en-GB"Locale for dates.
onValueChange(value: { date: string; time: string }) => void–Called with the ISO date and time when a slot is chosen.
requiredboolean–Requires a time before the form submits.
disabledboolean–Disables the calendar and the slots.
errorstring–Error message; marks the slots invalid.
classNamestring–Extra classes on the wrapper.

More date pickers

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