Migration to v4
Track and review changes to the CoreUI for React.js components to help you migrate from v3 to v4.
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 3 to 4 migration guide.
Components#
CAlert#
- Deprecated property
innerRef
. - Deprecated property
fade
. - Deprecated property
onShowChange
. - Deprecated property
closeButton
, usedismissible
instead of. - Deprecated property
show
, usevisible
instead of.
CBadge#
- Deprecated property
innerRef
. - Deprecated property
tag
, usecomponent
instead of.
CBreadcrumb#
- Deprecated property
innerRef
.
CBreadcrumbItem#
- Deprecated property
innerRef
.
CButton#
- Deprecated property
block
. - Deprecated property
innerRef
. - Deprecated property
pressed
. - Deprecated property
tag
, usecomponent
instead of.
CCallout#
- Deprecated property
innerRef
.
CCard#
- Deprecated property
innerRef
. - Deprecated property
accentColor
, use utilitiesclassName="border-top-{#color} border-top-3"
instead of.
CCardBody#
- Deprecated property
innerRef
.
CCardFooter#
- Deprecated property
innerRef
.
CCardGroup#
- Deprecated property
columns
. - Deprecated property
deck
. - Deprecated property
innerRef
.
CCardHeader#
- Deprecated property
innerRef
. - Deprecated property
tag
, usecomponent
instead of.
CCardImg#
- Component renamed to
CCardImg
- Deprecated property
variant
, useorientation
instead of.
CCardImgOverlay#
- Component renamed to
CCardImgOverlay
- Deprecated property
innerRef
. - Deprecated property
tag
.
CCardSubtitle#
- Deprecated property
innerRef
. - Deprecated property
tag
, usecomponent
instead of.
CCardText#
- Deprecated property
innerRef
. - Deprecated property
tag
, usecomponent
instead of.
CCardTitle#
- Deprecated property
innerRef
. - Deprecated property
tag
, usecomponent
instead of.
CCarousel#
- Deprecated property
autoSlide
. - Deprecated property
innerRef
. - Deprecated property
activeIndex
, useindex
instead of.
CCarouselControl#
- Component is depracated, use
<CCarousel controls>
instead of.
CCarouselIndicators#
- Component is depracated, use
<CCarousel indicators>
instead of.
CCarouselInner#
- Component is depracated.
CCollapse#
- Deprecated property
innerRef
. - Deprecated property
navbar
. - Deprecated property
show
, usevisible
instead of.
CCreateElement#
- Component is depracated.
CDropdown#
- Deprecated property
innerRef
. - Deprecated property
inNav
, usevariant="nav-item"
instead of. - Deprecated property
tag
, usecomponent
instead of.
CDropdownitem#
- Deprecated property
color
. - Deprecated property
divider
. - Deprecated property
innerRef
. - Deprecated property
header
. - Deprecated property
onClick
. - Deprecated property
tag
, usecomponent
instead of.
CDropdownMenu#
- Deprecated property
innerRef
. - Deprecated property
modifiers
. - Deprecated property
placement
, use<CDropdown placement="...">
instead of. - Deprecated property
show
, use<CDropdown visible>
instead of.
CDropdownToggle#
- Deprecated property
innerRef
. - Deprecated property
tag
, usecomponent
instead of.
CEmbed#
- Component is depracated.
CFade#
- Component is depracated.
CHeader#
- Deprecated property
withSubheader
. - Deprecated component
CHeaderNavItem
, useCNavItem
instead of. - Deprecated component
CHeaderNavLink
, useCNavLink
instead of.
CImg#
- Component renamed to
CImage
- Deprecated property
block
. - Deprecated property
innerRef
. - Deprecated property
fluidGrow
. - Deprecated property
placeholderColor
. - Deprecated property
shape
. - Deprecated property
tag
.
CJumbotron#
- Component is depracated.
CListGroup#
- Deprecated property
accent
. - Deprecated property
horizontal
, uselayout
instead of. - Deprecated property
innerRef
. - Deprecated property
tag
, usecomponent
instead of.
CListGroupItem#
- Deprecated property
accent
. - Deprecated property
action
, use propertycomponent="a"
orcomponent="button"
instead of. - Deprecated property
innerRef
. - Deprecated property
tag
, usecomponent
instead of.
CMedia#
- Component is depracated.
CModal#
- Deprecated property
addContentClass
. - Deprecated property
borderColor
, use utilitiesclassName="border border-{#color}"
instead of. - Deprecated property
centered
. - Deprecated property
closeOnBackdrop
. - Deprecated property
fade
, usetransition
instead of. - Deprecated property
innerRef
. - Deprecated property
onClosed
. - Deprecated property
onOpened
. - Deprecated property
show
, usevisible
instead of.
CModalBody#
- Deprecated property
innerRef
. - Deprecated property
tag
.
CModalFooter#
- Deprecated property
innerRef
. - Deprecated property
tag
.
CModalHeader#
- Deprecated property
innerRef
. - Deprecated property
tag
.
CNav#
- Deprecated property
inCard
. - Deprecated property
innerRef
. - Deprecated property
fill
, uselayout="fill"
instead of. - Deprecated property
justified
, uselayout="justified"
instead of. - Deprecated property
tag
, usecomponent
instead of.
CNavItem#
- Deprecated property
innerRef
. - Deprecated property
tag
, usecomponent
instead of.
CNavLink#
- Deprecated property
innerRef
.
CNavbar#
- Deprecated property
expandable
, useexpand
instead of. - Deprecated property
fixed
, useplacement="fixed-top"
instead of. - Deprecated property
innerRef
. - Deprecated property
light
, usecolorScheme="light"
instead of. - Deprecated property
sticky
, useplacement="sticky-top"
instead of. - Deprecated property
tag
, usecomponent
instead of.
CNavbarNav#
- Deprecated property
innerRef
. - Deprecated property
tag
, usecomponent
instead of.
CNavbarText#
- Deprecated property
innerRef
. - Deprecated property
tag
, usecomponent
instead of.
CPagination#
- **The component has been split into
CPagination
and toCSmartPagination
components.
CPopover#
- Deprecated property
header
, usetitle
instead of.
CProgress#
- Deprecated property
innerRef
. - Deprecated property
max
. - Deprecated property
precision
. - Deprecated property
showPercentage
. - Deprecated property
showValue
. - Deprecated property
size
, useheight
instead of. - Deprecated property
striped
, usevariant="striped"
instead of.
CProgressBar#
- Deprecated property
innerRef
. - Deprecated property
max
. - Deprecated property
precision
. - Deprecated property
showPercentage
. - Deprecated property
showValue
. - Deprecated property
size
, useheight
instead of. - Deprecated property
striped
, usevariant="striped"
instead of.
CSidebar#
- Deprecated property
minimize
usenarrow
instead of. - Deprecated property
dropdownMode
. - Deprecated component
CSidebarForm
, useCForm
instead of. - Deprecated component
CSidebarNavDivider
, useCNavDivider
instead of. - Deprecated component
CSidebarNavDropdown
, useCNavGroup
instead of. - Deprecated component
CSidebarNavLink
, useCNavLink
instead of. - Deprecated component
CSidebarNavItem
, useCNavItem
instead of. - Deprecated component
CSidebarNavTitile
, useCNavTitle
instead of.
CSwitch#
- Component is depracated, use
CFormSwitch
instead of.
CSpinner#
- Deprecated property
innerRef
. - Deprecated property
grow
, usevariant="grow"
instead of. - Deprecated property
tag
, usecomponent
instead of.
CTabs#
- Component is depracated, use
<CNav variant="tabs" role="tablist">
instead of
CTabContent#
- Deprecated property
innerRef
. - Deprecated property
fade
.
CTabPane#
- Deprecated property
active
, usevisible
instead of. - Deprecated property
innerRef
.
CToast#
- Deprecated property
innerRef
. - Deprecated property
fade
, useanimation
instead of. - Deprecated property
show
, usevisible
instead of. - Deprecated property
onStateChange
.
CToastBody#
- Deprecated property
innerRef
.
CToastHeader#
- Deprecated property
innerRef
.
CToggler#
- Component is depracated.
CTooltip#
- Deprecated property
interactive
. - Deprecated property
advancedOptions
.
Forms#
CFormGroup#
- Component is depracated.
CInput#
- Component renamed to
CFormInput
- Deprecated property
plaintext
, useplainText
instead of.
CInputCheckbox#
- Component is depracated, use
<CFormCheck>
instead of.
CInputFile#
- Component is depracated, use
<CFormInput type="file">
instead of.
CInputRadio#
- Component is depracated, use
<CFormCheck type="radio">
instead of.
CInputGroup#
- Deprecated property
innerRef
.
CInputGroupAddon#
- Component is depracated, use
CInputGroupText
instead of.
CSelect#
- Component is depracated, use
<CFormSelect>
instead of.
CValidFeedback#
- Component is depracated, use
<CFormFeedback valid>
instead of.
CInvalidFeedback#
- Component is depracated, use
<CCFormFeedback invalid>
instead of.
Layout#
CContainer#
- Deprecated property
tag
. - Deprecated property
innerRef
.
CCol#
- Deprecated property
tag
. - Deprecated property
width
, usexs
,sm
,md
,lg
,xl
,xxl
.
CRow#
- Deprecated property
alignHorizontal
. - Deprecated property
alignVertical
. - Deprecated property
form
. - Deprecated property
gutters
. - Deprecated property
tag
. - Deprecated property
width
, usexs
,sm
,md
,lg
,xl
,xxl
.