mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
* migrate to biome * cleanup * fix * use tsx * script tweaks * fix test runs * path tweaks
21 lines
506 B
Plaintext
21 lines
506 B
Plaintext
---
|
|
import { Moon, Sun } from '@/images/components'
|
|
import styles from './index.module.css'
|
|
---
|
|
|
|
<div class={styles.themeSwitch} title="Toggle Theme" id="theme-toggle">
|
|
<label for="toggle" class={styles.checkbox}>
|
|
<span class={styles.label}>Toggle Theme</span>
|
|
<input
|
|
type="checkbox"
|
|
name="toggle"
|
|
id="toggle"
|
|
aria-describedby="theme-toggle"
|
|
/>
|
|
<div aria-live="assertive">
|
|
<Sun id="sun" />
|
|
<Moon id="moon" hidden="true" />
|
|
</div>
|
|
</label>
|
|
</div>
|