Follow the sections below for upgrading from v2 to v3.
Moving to v3 of this library requires you to be using v11 of Carbon. Migrating a codebase to Carbon v11 will likely be significantly more involved than upgrading to v3 of this component library. View their migration guide for getting started with that work.
- Install
@carbon/react
and@boomerang-io/carbon-addons-boomerang-react
- Optionally uninstall
carbon-components-react
,carbon-components
and any other@carbon
packages that are included in@carbon/react
.e.g.@carbon/icons-react
You can import the carbon styles and the ours as follows:
// app.scss
@use "@carbon/react";
@use "@boomerang-io/carbon-addons-boomerang-react/scss/global";
There are a few more advanced use-cases documented in the the readme styles.
You can no longer import Carbon components from our component library. For example, the Button
component is not exported and you need to update the imports in your codebase if you used the addons alias.
- import { Button } from "@boomerang-io/carbon-addons-boomerang-react
+ import { Button } from "@carbon/react
That's it though. Our component API has remained unchanged for better or worse.