Basic Modal Picker
The simplest modal implementation with open/close state management and date selection.- Setting
modal={true}enables modal mode openprop controls modal visibilityonConfirmreceives the selected date when user confirmsonCancelis called when user cancels or taps outside the modal
Modal with Callbacks and Display
A complete example showing how to display the selected date and handle both confirmation and cancellation.- Setting an initial date value
- Displaying both date and time portions of the selected date
- Formatting dates using built-in JavaScript methods
Modal Picker Variations
- With Theme
Different Picker Modes
The modal picker supports three different modes for different use cases.- DateTime (Default)
- Date Only
- Time Only
Select both date and time in a single picker.