Input Date Picker

Date pickers allow users to select a date or range of dates.

date/main

Resources

Intro & Anatomy

Date pickers are interactive components that enable users to select single dates or date ranges. Use date pickers when users need to specify dates for bookings, scheduling, or form completion.

MDX offers two date picker types:

keyboard input for familiar dates that users can easily remember, and
calendar flyouts for dates requiring visual context or availability information.

date/anatomy

 


 

Options & Styles

Labels & Icons

Label is always required to clearly communicate the date selection purpose.
Icon appears only in calendar flyout inputs to indicate the expandable calendar functionality.

date/label

Input Types

The MDX date picker offers to input types:

Keyboard input for dates users remember easily or use different formats, e.g. birthdays, credit card expiry dates
Calendar flyout for dates requiring visual context or availability information, e.g. delivery dates, booking ranges

date/inputTypes

Calendar Views

Calendar flyouts provide multiple view options:

Monthly view for standard date selection
Month picker for quick month navigation
Year picker for rapid year selection

date/views

States

The calendar views provide visual feedback for different date states:

Today highlights the current date
Selected date shows the chosen date
Hover provides interactive feedback
Disabled/not available indicates unselectable dates

date/states

 


 

Best Practice & Usage

Date pickers should match the input method to the user's context and the type of date being selected. Use calendar flyouts for scheduling and system-dependent dates, and keyboard input for familiar or formatted dates.

For general input guidelines, refer to the text input component documentation.

Ref to 248:5921
Ref to 248:5923
Ref to 279:7082
Ref to 279:7085
Ref to 279:7652
Ref to 279:7655
Ref to 299:1985
Ref to 299:1988

 


 

Theming

You can customise colours, border width and radius, font styles, spacing, and paddings to match your design requirements.

When not using MDX icons, a slot is available to use your own icon library or SVG icons.