You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I love your little library, and I'd love to be able to leverage it in my ecosystem with @emotion.
My suggestion for the implementation would be to extract the styled component dependency from your library and offer an initialization hook of some sort that could take the styled library of choice as a parameter.
And then in your code depending on the scope from the initialize function you could have a conditional that branches based on the API of the provided package.
How does that sound?
Have a great day!
Cheers,
Philippe
The text was updated successfully, but these errors were encountered:
Hello!
I love your little library, and I'd love to be able to leverage it in my ecosystem with
@emotion
.My suggestion for the implementation would be to extract the styled component dependency from your library and offer an initialization hook of some sort that could take the
styled
library of choice as a parameter.Something like this:
And then in your code depending on the scope from the initialize function you could have a conditional that branches based on the API of the provided package.
How does that sound?
Have a great day!
Cheers,
Philippe
The text was updated successfully, but these errors were encountered: