Download resources/views/default/components/light-dark-switch.blade.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 522 Bytes
-
https://huggingface.co/pnacorp/magicai/resolve/main/resources/views/default/components/light-dark-switch.blade.php
- Command line
-
hf download hf://pnacorp/magicai/resources/views/default/components/light-dark-switch.blade.php
-
curl -L -o light-dark-switch.blade.php https://huggingface.co/pnacorp/magicai/resolve/main/resources/views/default/components/light-dark-switch.blade.php
522 Bytes
| <x-button | |
| class="lqd-light-dark-switch size-6 max-lg:size-10 flex items-center justify-center hover:bg-transparent max-lg:rounded-full max-lg:border max-lg:dark:bg-white/[3%]" | |
| size="none" | |
| href="#" | |
| title="{{ __('Toggle dark/light') }}" | |
| variant="link" | |
| x-data | |
| @click.prevent="$store.darkMode.toggle()" | |
| > | |
| <x-tabler-sun | |
| class="size-5 hidden dark:block" | |
| stroke-width="1.5" | |
| /> | |
| <x-tabler-moon | |
| class="size-5 dark:hidden" | |
| stroke-width="1.5" | |
| /> | |
| </x-button> | |