Skip to content

Why is usePrefix overwritten by settings in carbon-components? #9791

Answered by tay1orjones
TastyDucks asked this question in Help
Discussion options

You must be logged in to vote

Hey @TastyDucks - sorry for the confusion here! @carbon/react is in preview. It's part of the current beta for our v11 release and is intended to replace carbon-components and carbon-components-react.

@carbon/react forwards styles from @carbon/styles and it also includes the same components (with some v11 updates) from carbon-components-react.

This is outlined in more detail in the v11 migration guide (also still in beta and a WIP)

So overall, the fix here is to either use @carbon/react exclusively for components and styles, or use carbon-components with carbon-components-react.

I'm not sure what's up with the versioning on codesandbox. I was able to make a fork of your codesandbox with t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TastyDucks
Comment options

Answer selected by TastyDucks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
2 participants
Converted from issue

This discussion was converted from issue #9788 on October 01, 2021 20:24.