Skip to content

Commit 0e6fcd3

Browse files
committed
tests for T-nodes
1 parent 424f221 commit 0e6fcd3

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>Hello world</p>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>Hello world</p>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script>
2+
import { fade } from 'svelte/transition';
3+
4+
let visible = $state(false);
5+
</script>
6+
7+
<button onclick={() => visible = !visible}>toggle</button>
8+
9+
{#if visible}
10+
<div transition:fade>fades in and out</div>
11+
{/if}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<script>
2+
import { fade } from 'svelte/transition';
3+
4+
let visible = $state(false);
5+
</script>
6+
7+
<button onclick={() => visible = !visible}>
8+
toggle
9+
</button>
10+
11+
{#if visible}
12+
<div transition:fade>fades in and out</div>
13+
{/if}

0 commit comments

Comments
 (0)