Props that customize the requirement of a date

interface DatePickerRequiredObject {
    emptyDateText?: string;
    isRequired?: boolean;
}

Properties

emptyDateText?: string

Error message to display when the text input is empty and the isRequired prop is also passed in.

isRequired?: boolean

Flag indicating the date is required.