Powerful suite of Blade components for TALL Stack apps.

Theme Switch

>= 1.20

Theme switch components.

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.

<x-theme-switch />
<x-theme-switch xs />
<x-theme-switch sm />
<x-theme-switch md />
<x-theme-switch lg />
<x-theme-switch xl />

An option to only display icons, without the toggle.

<x-theme-switch only-icons />

Code highlighting provided by Torchlight