Skip to content
Month picker, light
Light
Month picker, dark
Dark

Every state

  • Month picker, default, light
    Month picker, default, dark

    default

  • Month picker, focus, light
    Month picker, focus, dark

    focus

  • Month picker, selected, light
    Month picker, selected, dark

    selected

  • Month picker, past-disabled, light
    Month picker, past-disabled, dark

    past-disabled

  • Month picker, other-year, light
    Month picker, other-year, dark

    other-year

  • Month picker, error, light
    Month picker, error, dark

    error

  • Month picker, disabled, light
    Month picker, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"month"Id prefix; each month is `${id}-yyyy-mm`.
namestring"month"Form name of the chosen month, yyyy-mm.
legendstring"Billing month"The group's visible label.
descriptionstring–Help line under the legend.
defaultValuestring–The month chosen at the start, yyyy-mm.
defaultYearnumber–The year shown at the start; defaults to the chosen month's year or this year.
minstring–The first month that can be picked, yyyy-mm; earlier months are disabled.
maxstring–The last month that can be picked, yyyy-mm.
todayDate–Today's date, to mark this month; defaults to the real today.
localestring"en-GB"Locale for month names.
onValueChange(value: string) => void–Called with the chosen month, yyyy-mm.
requiredboolean–Requires a month before the form submits.
disabledboolean–Disables the group.
errorstring–Error message; marks the group invalid.
classNamestring–Extra classes on the fieldset.

More date pickers

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