Skip to content
Date of birth, light
Light
Date of birth, dark
Dark

Every state

  • Date of birth, default, light
    Date of birth, default, dark

    default

  • Date of birth, focus, light
    Date of birth, focus, dark

    focus

  • Date of birth, filled, light
    Date of birth, filled, dark

    filled

  • Date of birth, invalid-date, light
    Date of birth, invalid-date, dark

    invalid-date

  • Date of birth, future-year, light
    Date of birth, future-year, dark

    future-year

  • Date of birth, too-young, light
    Date of birth, too-young, dark

    too-young

  • Date of birth, disabled, light
    Date of birth, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"dob"Id prefix; the fields are `${id}-day`, `${id}-month` and `${id}-year`.
namestring"date-of-birth"Form name of the hidden ISO date, set once the date is valid.
legendstring"Date of birth"The group's visible label.
descriptionstring–Help line under the legend.
defaultValueDatePickerBirthDateParts–The fields at the start: day, month (1 to 12) and year, as strings.
minAgenumber18The youngest age allowed; 0 for no limit.
todayDate–Today's date; defaults to the real today.
localestring"en-GB"Locale for month names and the date read back.
onValueChange(iso: string) => void–Called with the ISO date when it is valid, or an empty string.
requiredboolean–Requires all three fields.
disabledboolean–Disables the group.
errorstring–An outside error message; wins over the field's own checks.
classNamestring–Extra classes on the fieldset.

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