1
0

Обновлен пример

This commit is contained in:
2025-09-11 21:23:15 +04:00
parent 5b0cb35759
commit 643c5be6cd

View File

@@ -2,12 +2,18 @@
<p>Create your package using @sveltejs/package and preview/showcase your work with SvelteKit</p>
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
<div class="image">
<Image src="/favicon.svg" style="object-fit: contain;"/>
</div>
<button onclick={() => visible = !visible}>toggle</button>
{#if visible}
<div class="image">
<Image src="/favicon.svg" style="object-fit: contain;"/>
</div>
{/if}
<script>
import Image from '$lib/components/Image.svelte'
let visible = $state(true)
</script>
<style>