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
component
property toas
.
CAvatar#
- Removed
textColor
values:muted
,high-emphasis
,medium-emphasis
,disabled
,high-emphasis-inverse
,medium-emphasis-inverse
,disabled-inverse
. - New
textColor
values: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
component
property toas
. - Deprecated
textColor
values:muted
,high-emphasis
,medium-emphasis
,disabled
,high-emphasis-inverse
,medium-emphasis-inverse
,disabled-inverse
. - New
textColor
values: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
component
property toas
. - Breaking The button doesn't have a default color anymore, you have to add
color="primary"
CCard#
- Removed
textColor
values:muted
,high-emphasis
,medium-emphasis
,disabled
,high-emphasis-inverse
,medium-emphasis-inverse
,disabled-inverse
. - New
textColor
values: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
component
property toas
.
CCardImage#
- Breaking Renamed
component
property toas
.
CCardSubtitle#
- Breaking Renamed
component
property toas
.
CCardText#
- Breaking Renamed
component
property toas
.
CCardTitle#
- Breaking Renamed
component
property toas
.
CCloseButton#
- Deprecated property
white
, usedark
instead of.
CDatePicker#
-
Removed property
format
, useinputDateFormat
instead of.// Previous markup<CDatePicker format="MMMM-dd-yyyy"/>// New markupimport { format } from 'date-fns'//...<CDatePicker inputDateFormat={(date) => format(new Date(date), 'MMMM-dd-yyyy')} /> -
onDateChange
event return only the date object, instead of the date object and formatted string.
CDateRangePicker#
-
Removed property
format
, useinputDateFormat
instead of.// Previous markup<CDateRangePicker format="MMMM-dd-yyyy"/>// New markupimport { format } from 'date-fns'//...<CDateRangePicker inputDateFormat={(date) => format(new Date(date), 'MMMM-dd-yyyy')} /> -
onStartDateChange
andonEndDateChange
events return only the date object, instead of the date object and formatted string.
CDropdown#
- Breaking Renamed
component
property toas
.
CDropdownHeader#
- Breaking Renamed
component
property toas
.
CDropdownItem#
- Breaking Renamed
component
property toas
.
CDropdownItemPlain#
- Breaking Renamed
component
property toas
.
CDropdownMenu#
- Breaking Renamed
component
property toas
.
CDropdownToggle#
- Breaking Renamed
component
property toas
.
CFormFeedback#
- Breaking Renamed
component
property toas
.
CFormText#
- Breaking Renamed
component
property toas
.
CHeaderBrand#
- Breaking Renamed
component
property toas
.
CHeaderNav#
- Breaking Renamed
component
property toas
.
CInputGroupText#
- Breaking Renamed
component
property toas
.
CLink#
- Breaking Renamed
component
property toas
.
CListGroup#
- Breaking Renamed
component
property toas
.
CListGroupItem#
- Breaking Renamed
component
property toas
.
CModalTitle#
- Breaking Renamed
component
property toas
.
CMultiSelect#
- Removed key
text
in the options list, uselabel
instead
CNav#
- Breaking Renamed
component
property toas
. - Breaking The
underline
variant has been changed tounderline-border
CNavbar#
- Breaking Renamed
component
property toas
.
CNavbarBrand#
- Breaking Renamed
component
property toas
.
CNavbarNav#
- Breaking Renamed
component
property toas
.
CNavItem#
- Breaking Renamed
component
property toas
.
CNavLink#
- Breaking Renamed
component
property toas
.
CNavTitle#
- Breaking Renamed
component
property toas
.
COffcanvasTitle#
- Breaking Renamed
component
property toas
.
CPaginationItem#
- Breaking Renamed
component
property toas
.
CPlaceholder#
- Breaking Renamed
component
property toas
.
CSidebar#
- Breaking Sidebar has a light color scheme by default, use
colorScheme="dark"
to make it dark.
CSpinner#
- Breaking Renamed
component
property toas
.
CToastClose#
- Breaking Renamed
component
property toas
. - Deprecated property
white
, usedark
instead of.