Обновлен пример
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user