Global Theme Provider across lit subcomponents. #4604
Unanswered
Huzaifa1911
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Using |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've started learning about web components and how they work. Basically, I've started making components using MUI as a reference. With MUI, we use a theme provider to wrap our app, allowing us to share custom themes across MUI components.
I wanted to do something similar with web components using lit. So, I came up with a solution. I've included the code below to show how I've created and used it. (PS: I've created React wrappers for web components and used it in a React app.)
Regarding that solution, I have a couple of questions:
Theme Provider
Consumer React Functional Component
Beta Was this translation helpful? Give feedback.
All reactions