Skip to content
Deadline field, light
Light
Deadline field, dark
Dark

Every state

  • Deadline field, default, light
    Deadline field, default, dark

    default

  • Deadline field, focus, light
    Deadline field, focus, dark

    focus

  • Deadline field, open, light
    Deadline field, open, dark

    open

  • Deadline field, due-soon, light
    Deadline field, due-soon, dark

    due-soon

  • Deadline field, overdue, light
    Deadline field, overdue, dark

    overdue

  • Deadline field, disabled, light
    Deadline field, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"due"Id of the date button; label, hint and panel hang off it.
namestring"due"Form name of the due date (yyyy-mm-dd).
labelstring"Due date"The field's visible label.
descriptionstring–Help line under the hint.
todayDate–Today's date; defaults to the real today. The hint counts from it.
defaultValuestring–The due date at the start (yyyy-mm-dd).
workingDaysbooleanfalseCounts Monday to Friday only ("3 working days left").
soonDaysnumber3This many days or fewer left marks the date as due soon.
placeholderstring"Pick a date"Button text before a date is chosen.
emptyHintstring"Pick a date to see how long is left."The hint before a date is chosen.
localestring"en-GB"Locale for the date.
onValueChange(value: string) => void–Called with the chosen date (yyyy-mm-dd).
requiredboolean–Marks the field as required.
disabledboolean–Disables the field.
errorstring–Error message; marks the field invalid.
classNamestring–Extra classes on the field.

More date pickers

All 10

Preview

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

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