onChange
Description
Fires when closing the Month view after date selectionUsage
onChange?: (ev: Date) => void;
Parameters
It takes one parameter:
ev: Date
- a Date object representing the selected day.
Example
function Example() {
const handleChange = (ev: Date) => {
console.log("Selected date:", ev);
};
return <Month onChange={handleChange} />;
}