Replies: 2 comments
-
Exactly the same way you show above, and for the React part using web component : https://swiperjs.com/blog/using-swiper-element-in-react |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The problem? I want to change the color of the fraction string 1/3.
How can I style the highlighted div that lives in
#shadow-root
?The most obvious thing to try is to:
But this does not work.
The docs have an example on how to inject styles:
https://swiperjs.com/element#injecting-styles
I guess the above will inject my styles into the shadow DOM?
But I don't know how to do this in React? Can someone please provide an example?
Beta Was this translation helpful? Give feedback.
All reactions