svelte/test/runtime/samples/if-block-first/main.svelte

10 lines
123 B

<script>
export let visible;
</script>
<div>
{#if visible}
<div>i am visible</div>
{/if}
<div>before me</div>
</div>