Migration to v5
Track and review changes to the CoreUI for React.js components to help you migrate from v4 to v5.
On this page
CoreUI for React is the React.js version of CoreUI components library, so before read this migration guide, please check also CoreUI 4 to 5 migration guide.
Components#
CAlertHeading#
- Breaking Renamed
componentproperty toas.
CAvatar#
- Removed
textColorvalues:muted,high-emphasis,medium-emphasis,disabled,high-emphasis-inverse,medium-emphasis-inverse,disabled-inverse. - New
textColorvalues:primary-emphasis,secondary-emphasis,success-emphasis,danger-emphasis,warning-emphasis,info-emphasis,light-emphasis,body,body-emphasis,body-secondary,body-tertiary,black,black-50,white,white-50.
CBadge#
- Breaking Renamed
componentproperty toas. - Deprecated
textColorvalues:muted,high-emphasis,medium-emphasis,disabled,high-emphasis-inverse,medium-emphasis-inverse,disabled-inverse. - New
textColorvalues:primary-emphasis,secondary-emphasis,success-emphasis,danger-emphasis,warning-emphasis,info-emphasis,light-emphasis,body,body-emphasis,body-secondary,body-tertiary,black,black-50,white,white-50.
CButton#
- Breaking Renamed
componentproperty toas. - Breaking The button doesn't have a default color anymore, you have to add
color="primary"
CCard#
- Removed
textColorvalues:muted,high-emphasis,medium-emphasis,disabled,high-emphasis-inverse,medium-emphasis-inverse,disabled-inverse. - New
textColorvalues:primary-emphasis,secondary-emphasis,success-emphasis,danger-emphasis,warning-emphasis,info-emphasis,light-emphasis,body,body-emphasis,body-secondary,body-tertiary,black,black-50,white,white-50.
CCardHeading#
- Breaking Renamed
componentproperty toas.
CCardImage#
- Breaking Renamed
componentproperty toas.
CCardSubtitle#
- Breaking Renamed
componentproperty toas.
CCardText#
- Breaking Renamed
componentproperty toas.
CCardTitle#
- Breaking Renamed
componentproperty toas.
CCloseButton#
- Deprecated property
white, usedarkinstead of.
CDatePicker#
-
Removed property
format, useinputDateFormatinstead of.// Previous markup<CDatePicker format="MMMM-dd-yyyy"/>// New markupimport { format } from 'date-fns'//...<CDatePicker inputDateFormat={(date) => format(new Date(date), 'MMMM-dd-yyyy')} /> -
onDateChangeevent return only the date object, instead of the date object and formatted string.
CDateRangePicker#
-
Removed property
format, useinputDateFormatinstead of.// Previous markup<CDateRangePicker format="MMMM-dd-yyyy"/>// New markupimport { format } from 'date-fns'//...<CDateRangePicker inputDateFormat={(date) => format(new Date(date), 'MMMM-dd-yyyy')} /> -
onStartDateChangeandonEndDateChangeevents return only the date object, instead of the date object and formatted string.
CDropdown#
- Breaking Renamed
componentproperty toas.
CDropdownHeader#
- Breaking Renamed
componentproperty toas.
CDropdownItem#
- Breaking Renamed
componentproperty toas.
CDropdownItemPlain#
- Breaking Renamed
componentproperty toas.
CDropdownMenu#
- Breaking Renamed
componentproperty toas.
CDropdownToggle#
- Breaking Renamed
componentproperty toas.
CFormFeedback#
- Breaking Renamed
componentproperty toas.
CFormText#
- Breaking Renamed
componentproperty toas.
CHeaderBrand#
- Breaking Renamed
componentproperty toas.
CHeaderNav#
- Breaking Renamed
componentproperty toas.
CInputGroupText#
- Breaking Renamed
componentproperty toas.
CLink#
- Breaking Renamed
componentproperty toas.
CListGroup#
- Breaking Renamed
componentproperty toas.
CListGroupItem#
- Breaking Renamed
componentproperty toas.
CModalTitle#
- Breaking Renamed
componentproperty toas.
CMultiSelect#
- Removed key
textin the options list, uselabelinstead
CNav#
- Breaking Renamed
componentproperty toas. - Breaking The
underlinevariant has been changed tounderline-border
CNavbar#
- Breaking Renamed
componentproperty toas.
CNavbarBrand#
- Breaking Renamed
componentproperty toas.
CNavbarNav#
- Breaking Renamed
componentproperty toas.
CNavItem#
- Breaking Renamed
componentproperty toas.
CNavLink#
- Breaking Renamed
componentproperty toas.
CNavTitle#
- Breaking Renamed
componentproperty toas.
COffcanvasTitle#
- Breaking Renamed
componentproperty toas.
CPaginationItem#
- Breaking Renamed
componentproperty toas.
CPlaceholder#
- Breaking Renamed
componentproperty toas.
CSidebar#
- Breaking Sidebar has a light color scheme by default, use
colorScheme="dark"to make it dark.
CSpinner#
- Breaking Renamed
componentproperty toas.
CToastClose#
- Breaking Renamed
componentproperty toas. - Deprecated property
white, usedarkinstead of.