Swap style of the external library's interactive component

Hey Guys, So I have a situation when I need to use an interactive component from an external library and use it with other styles.

I will try to explain the checkbox component.

I took a checkbox component with variants: [ Default, Hover, Checked ] to another file and swapped styles with other colors

But swapping styles changes only colors in a particular file and doesn’t override other variants of the component.

In the prototype mode, I got this CleanShot 2022-02-14 at 11.22.15 · CleanShot Cloud instead of desired result which will be this CleanShot 2022-02-14 at 11.25.13 · CleanShot Cloud

So, is there a way, to resolve this problem? How can I use an interactive component in another file and have all states in the prototype with override colors from swapping style in the external file?

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.