Theme Switch Slider
Source

Theme Switch Slider

A sliding light/dark theme control with an application-supplied value and change handler. Use it to share the visual theme-switch interaction without coupling the control to a theme storage library; the next-themes variant provides that integration when needed.

INTERACTIVE PREVIEW