SThemeSwitcherComponent
This component represent a simple theme-switcher that allows you to switch between light and dark mode easily as well as choosing between all of your themes if you have more than 1 available...
Preview
Simple dark mode switcher
Loading code example. Please wait...
Features
Import
Install
Events
-
s-theme-switcher.change
Dispatched when the theme has been changed
-
s-theme-switcher
Dispatched for every events of this component. Check the detail.eventType prop for event type
Interface
-
darkModeiconfalseBoolean
Specify if you want to dark mode icon or not
-
darkModeIconClasss-icon:dark-modeString
Specify the class to apply on the i tag for the dark mode icon