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
This seems like a very basic question but I'm having trouble finding any documentation on this. If I want to have a button or something in a child component to switch themes, how do I do that? I figured the useFluent hook can be used to get the current provider instance but I don't know how to properly set the theme.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This seems like a very basic question but I'm having trouble finding any documentation on this. If I want to have a button or something in a child component to switch themes, how do I do that? I figured the useFluent hook can be used to get the current provider instance but I don't know how to properly set the theme.
So if I want to change the theme to teamsDark or something without drilling props through Root, how do I do that?
Beta Was this translation helpful? Give feedback.
All reactions