The propsConfigs prop allows you to pass Chakra UI props to various internal components to customize their appearance. This is useful for overriding default styles or applying global themes.
Key configuration groups include:
dateNavBtnProps: Extends ButtonProps for navigation buttons.dayOfMonthBtnProps: Customizes date buttons based on state. Style precedence: default < isInRange < selected < today.popoverCompProps: Customizes the popover container and body.calendarPanelProps: Customizes the layout wrapper, content, header, and dividers.weekdayLabelProps and dateHeadingProps: Customizes text styles for labels and headings.inputProps: Customizes the text input element.
propsConfigs={{
dateNavBtnProps: {
colorScheme: "blue",
variant: "outline"
},
dayOfMonthBtnProps: {
defaultBtnProps: {
borderColor: "red.300",
_hover: { background: 'blue.400' }
},
isInRangeBtnProps: {
color: "yellow",
},
selectedBtnProps: {
background: "blue.200",
color: "green",
},
todayBtnProps: {
background: "teal.400",
}
},
inputProps: {
size: "sm"
},
popoverCompProps: {
popoverContentProps: {
background: "gray.700",
color: "white",
},
},
calendarPanelProps: {
wrapperProps: {
borderColor: 'green',
},
contentProps: {
borderWidth: 0,
},
headerProps: {
padding: '5px',
},
dividerProps: {
display: "none",
},
},
weekdayLabelProps: {
fontWeight: 'normal'
},
dateHeadingProps: {
fontWeight: 'semibold'
}
}}