6 changed files with 49 additions and 29 deletions
@ -1,11 +1,11 @@ |
|||||||
<script lang="ts"> |
<script lang="ts"> |
||||||
import { showTech } from '$lib/stores/techStore.ts'; |
import { showTech } from '$lib/stores/techStore.ts'; |
||||||
import { Toggle } from "flowbite-svelte"; |
import { Toggle, P } from "flowbite-svelte"; |
||||||
let label = 'Show technical details'; |
let label = 'Show technical details'; |
||||||
$: checked = $showTech; |
$: checked = $showTech; |
||||||
</script> |
</script> |
||||||
|
|
||||||
<div class="inline-flex items-center gap-2 select-none"> |
<div class="inline-flex items-center gap-2 select-none my-3"> |
||||||
<Toggle {checked} ontoggle={() => $showTech = checked} aria-label={label} /> |
<Toggle {checked} ontoggle={() => $showTech = checked} aria-label={label} /> |
||||||
<span class="text-sm">{label}</span> |
<P class="text-sm">{label}</P> |
||||||
</div> |
</div> |
||||||
|
|||||||
Loading…
Reference in new issue