Theme Switch
>= 1.20Theme switch components.
Theme-Switch, Personalization Blocks
This content is part of TallStackUI personalization.
Example:
TallStackUi::personalize() ->themeSwitch() ->block('block', 'classes');
The soft personalization should be done in boot
method of service providers.
As TallStackUI offers a helper to manipulate the dark theme, starting from version 1.20, a simple toggle component was introduced with support for manipulating the dark theme state, activating or deactivating it with the respective sun and moon icons.
You should only use this component if are using the dark theme helper.
An option to only display icons, without the toggle.