Skip to content
Mizen UI
Docs

IntroductionInstallationCLIStylingFoundationsThemingCompositionIntegrationsAccessibilityFor agents

useCopyToClipboard

AccordionAspect RatioCardCollapsibleFrameGridGroupInlineScroll AreaSectionSeparatorSpacerStack

BlockquoteCitationCodeHeadingKbdLabelLinkTextVisually Hidden

ButtonButton GroupToggleToggle groupToolbar

CalendarCheckboxCheckbox groupComboboxDate pickerDate range pickerDate-Time InputFieldFieldsetFile UploadFormInputInput groupNumber fieldOTP FieldRadio groupSelectSliderSwitchTextareaTime Input

BreadcrumbMenubarNavigation MenuPaginationSegmented ControlStepperTabs

Alert dialogCommandContext MenuDialogDrawerMenuPopoverPreview CardSheetTooltip

AlertBadgeEmptyError StateMeterProgressSkeletonSpinnerStatus dotToast

Activity FeedAvatarAvatar GroupData TableListMetricOverflow ListProperty ListTableTokenTree

Area ChartBar ListCalendar HeatmapCategory ComparisonChart FrameChart LegendChart TooltipDistributionFunnelHeatmapMetric TrendPart-to-WholeProgress RingsRadar ChartRadial BarsSankey ChartScatter ChartScore GaugeTime Series

Diagram

AttachmentCarouselCode BlockLightboxMarkdownThumbnailTimestamp

Agent ThinkingApproval CardComposerConversationInline CitationMessageMessage ScrollerQuestion CardSourcesStreaming TextSuggestionTask ListTerminalTool Call

On this page

  • Preview
  • Usage
  • Examples
  • Uncontrolled
  • Controlled
  • Bounded
  • Disabled
  • Read-only
  • Invalid
  • Month and year navigation
  • Recommendations
  • Usage boundaries
  • API reference

Forms

Date picker

Combines an editable ISO date input with an integrated Calendar popover, strict constraint validation, and keyboard interaction.

idle

Usage

import { DatePicker } from "@mizen-labs/ui";

Examples

Uncontrolled

Controlled

Bounded

Disabled

Read-only

Invalid

Month and year navigation

Jump directly to a month or year using Mizen Select. Navigation bounds define the available years.

Recommendations

GuidancePractice
Do

Label the date's purpose and state its constraints. Keep editable input and calendar selection available.

Usage boundaries

GuidanceBoundary
Scope

Values are dates, not timestamps. Use Date Time Input when the task requires a local time as well.

API reference

Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.

PropTypeDefaultDescription
valueDate | undefined—Controlled date selection value.
defaultValueDate | undefined—Initial date selection value in uncontrolled mode.
onValueChange(value: Date | undefined) => void—Event handler called when date selection changes.
disabledbooleanfalsePrevents user interaction when true.
readOnlybooleanfalseMarks the input as read-only; opens calendar for inspection without selection commit.
invalidbooleanfalseIndicates invalid input value or constraint violation.
requiredbooleanfalseRequires a value before form submission.
size"default" | "lg" | "sm""default"Visual size variant of the input field.
minValueDate | undefined—Minimum selectable and valid date boundary.
maxValueDate | undefined—Maximum selectable and valid date boundary.
isDateUnavailable((date: Date) => boolean) | undefined—Callback to determine whether a given date is unavailable for selection.
localeCalendarLocale | undefined—Locale configuration passed to the calendar grid.
dir"ltr" | "rtl" | undefined—Text direction for layout and navigation.
weekStartsOn0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined—First day of the week (0 for Sunday, 1 for Monday, etc.).
namestring | undefined—HTML form field name.
idstring | undefined—HTML element identifier.
aria-labelstring | undefined—Accessible label text when no visual label is present.
aria-labelledbystring | undefined—ID of element labelling this input.
aria-describedbystring | undefined—ID of element describing this input.
autoFocusboolean | undefinedfalseAutomatically focuses the text input on mount.
DatePickerDatePickerProps"div"Composite single-date picker with editable text input and calendar popover.
captionLayout"label" | "dropdown""label"Use dropdown to navigate directly with month and year selects.
startMonthDate100 years before today in dropdown modeFirst month available for navigation. Does not change date availability.
endMonthDateEnd of the current year in dropdown modeLast month available for navigation. Does not change date availability.
PreviousComboboxNextDate range picker

Ships on Thursday, October 15, 2026.

Uncontrolled

Default date with local ISO typing and calendar trigger.

Controlled

Selected: 2026-10-03

Bounded

Restricted to October 2026 (2026-10-01 to 2026-10-31).

Disabled

Interaction prevented on both input and trigger.

Read-only

Input is read-only; opens calendar for inspection.

Invalid

Shows error styling via external invalid property.

Use the month and year menus to jump.