-
Hello 👋🏼 Library
We have two different components: a button and a popover for the moment. The button itself seems to work, but styles are not applied unless we wrap it with the Theme Provider:
On the other side, the popover component seems to be broken with the following error
Do you know if there is any way to avoid that? Here there is a little bit more context:
The application that imports the library has been created with CRA JS and the Paste dependencies are:
Also, the application has the Theme Provider injected into the App.js file:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @kcubero27! In order for us to best provide support here, it would be good to get a little more context on what you're trying to achieve. What's your goal in creating a new component library on top of Paste? What are you trying to accomplish by wrapping Paste that you aren't able to do by using our Paste components as they are? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Somehow, when we use npm link locally in order to see the changes from the library, it doesn't work as expected and it complains about the fontSize70. However, if we use npm pack instead, it works like a charm. |
Beta Was this translation helpful? Give feedback.
Somehow, when we use npm link locally in order to see the changes from the library, it doesn't work as expected and it complains about the fontSize70. However, if we use npm pack instead, it works like a charm.
Weird 👍🏼