Overview
Elegant dark mode toggle switch with smooth transitions and persistent preference storage. Automatically syncs with system preferences and saves user choice to localStorage.
Installation
Copy the component class to your app/Livewire directory.
Copy the Blade view to your resources/views/livewire directory.
Usage
Include the component in your Blade template:
<livewire:dark-mode-toggle />
Pro Tip
This component uses Tailwind CSS with the tw- prefix. Make sure your Tailwind configuration includes this prefix or remove it from the classes.