We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76514dc commit e830522Copy full SHA for e830522
demo/App.svelte
@@ -1,5 +1,13 @@
1
-<div class="page">
2
- <my-component a-boolean={false} />
+<script>
+ let x = false;
3
+
4
+ function toggle() {
5
+ x = !x;
6
+ }
7
+</script>
8
9
+<div class="page" on:click={toggle}>
10
+ <my-component a-boolean={x} />
11
</div>
12
13
<style>
@@ -10,9 +18,4 @@
18
right: 0;
19
bottom: 0;
20
}
-
14
- .page-content {
15
- height: 150vh;
16
- padding: 0 16px;
17
- }
21
</style>
0 commit comments