InterfaceDatePickerProps
Interface: InterfaceDatePickerProps
Defined in: src/types/shared-components/DatePicker/interface.ts:7
Component Props for DatePicker
Properties
className?
optionalclassName:string
Defined in: src/types/shared-components/DatePicker/interface.ts:41
Additional CSS class name to be applied to the root element
data-cy?
optionaldata-cy:string
Defined in: src/types/shared-components/DatePicker/interface.ts:45
Test ID for Cypress testing purposes
data-testid?
optionaldata-testid:string
Defined in: src/types/shared-components/DatePicker/interface.ts:43
Test ID for testing purposes, applied to the underlying input
disabled?
optionaldisabled:boolean
Defined in: src/types/shared-components/DatePicker/interface.ts:31
Whether the date picker is disabled
error?
optionalerror:string
Defined in: src/types/shared-components/DatePicker/interface.ts:35
Error message to display when validation fails
format?
optionalformat:string
Defined in: src/types/shared-components/DatePicker/interface.ts:51
Format of the date displayed in the input (e.g., "MM/DD/YYYY", "YYYY-MM-DD")
helpText?
optionalhelpText:string
Defined in: src/types/shared-components/DatePicker/interface.ts:39
Additional help text displayed below the field
label?
optionallabel:string
Defined in: src/types/shared-components/DatePicker/interface.ts:11
Label displayed for the date picker
maxDate?
optionalmaxDate:Dayjs
Defined in: src/types/shared-components/DatePicker/interface.ts:29
Maximum selectable date constraint
minDate?
optionalminDate:Dayjs
Defined in: src/types/shared-components/DatePicker/interface.ts:27
Minimum selectable date constraint
name?
optionalname:string
Defined in: src/types/shared-components/DatePicker/interface.ts:9
Unique name identifier for the field
onBlur()?
optionalonBlur: () =>void
Defined in: src/types/shared-components/DatePicker/interface.ts:25
Callback fired when the field is blurred (for touch tracking)
Returns
void
onChange()
onChange: (
date) =>void
Defined in: src/types/shared-components/DatePicker/interface.ts:21
Callback fired when the date changes.
Parameters
date
Dayjs
The new date value.
Returns
void
required?
optionalrequired:boolean
Defined in: src/types/shared-components/DatePicker/interface.ts:33
Whether the field is required
slotProps?
optionalslotProps:Partial<DatePickerSlotProps<false>>
Defined in: src/types/shared-components/DatePicker/interface.ts:47
Additional props passed to MUI DatePicker slots (e.g., actionBar, layout)
slots?
optionalslots:Record<string,React.ElementType>
Defined in: src/types/shared-components/DatePicker/interface.ts:49
Custom slot component overrides (e.g., openPickerIcon, leftArrowIcon)
touched?
optionaltouched:boolean
Defined in: src/types/shared-components/DatePicker/interface.ts:37
Whether the field has been touched (for validation UX)
value?
optionalvalue:Dayjs
Defined in: src/types/shared-components/DatePicker/interface.ts:16
Current date value. Represented as a Dayjs object or null if no date is selected.