diff --git a/documentation/examples/04-events/00-dom-events/App.svelte b/documentation/examples/04-events/00-dom-events/App.svelte index 54470a9a5eb2..2f6eac115cb9 100644 --- a/documentation/examples/04-events/00-dom-events/App.svelte +++ b/documentation/examples/04-events/00-dom-events/App.svelte @@ -7,6 +7,7 @@ } +
The mouse position is {m.x} x {m.y}
diff --git a/documentation/examples/04-events/01-inline-handlers/App.svelte b/documentation/examples/04-events/01-inline-handlers/App.svelte index 24127035ad47..4827241f30dd 100644 --- a/documentation/examples/04-events/01-inline-handlers/App.svelte +++ b/documentation/examples/04-events/01-inline-handlers/App.svelte @@ -2,6 +2,7 @@ let m = { x: 0, y: 0 }; +
(m = { x: e.clientX, y: e.clientY })}> The mouse position is {m.x} x {m.y}
diff --git a/documentation/examples/08-motion/01-spring/App.svelte b/documentation/examples/08-motion/01-spring/App.svelte index 59346dcb3b3b..e5b59901aa12 100644 --- a/documentation/examples/08-motion/01-spring/App.svelte +++ b/documentation/examples/08-motion/01-spring/App.svelte @@ -24,6 +24,7 @@ + coords.set({ x: e.clientX, y: e.clientY })} on:mousedown={() => size.set(30)} diff --git a/documentation/examples/09-transitions/06-deferred-transitions/App.svelte b/documentation/examples/09-transitions/06-deferred-transitions/App.svelte index c88ba67d2564..74db062fc8d0 100644 --- a/documentation/examples/09-transitions/06-deferred-transitions/App.svelte +++ b/documentation/examples/09-transitions/06-deferred-transitions/App.svelte @@ -49,6 +49,7 @@ {#if selected} {#await selected then d}
+ {d.alt} (selected = null)} />

diff --git a/documentation/examples/11-easing/00-easing/Controls.svelte b/documentation/examples/11-easing/00-easing/Controls.svelte index 5b51b8b84b06..127389b4bc15 100644 --- a/documentation/examples/11-easing/00-easing/Controls.svelte +++ b/documentation/examples/11-easing/00-easing/Controls.svelte @@ -28,8 +28,8 @@ {:else}

@@ -46,8 +46,8 @@ {:else} diff --git a/documentation/examples/15-composition/03-slot-props/Hoverable.svelte b/documentation/examples/15-composition/03-slot-props/Hoverable.svelte index 773a8ecf6a5b..fbf45e4d303f 100644 --- a/documentation/examples/15-composition/03-slot-props/Hoverable.svelte +++ b/documentation/examples/15-composition/03-slot-props/Hoverable.svelte @@ -10,6 +10,7 @@ } +
diff --git a/documentation/examples/15-composition/05-modal/Modal.svelte b/documentation/examples/15-composition/05-modal/Modal.svelte index acdbd50ab11c..3b832030fe4b 100644 --- a/documentation/examples/15-composition/05-modal/Modal.svelte +++ b/documentation/examples/15-composition/05-modal/Modal.svelte @@ -6,12 +6,13 @@ $: if (dialog && showModal) dialog.showModal(); - + (showModal = false)} on:click|self={() => dialog.close()} > +

diff --git a/documentation/examples/17-special-elements/00-svelte-self/Folder.svelte b/documentation/examples/17-special-elements/00-svelte-self/Folder.svelte index 8350aacf49de..543a7140d38c 100644 --- a/documentation/examples/17-special-elements/00-svelte-self/Folder.svelte +++ b/documentation/examples/17-special-elements/00-svelte-self/Folder.svelte @@ -11,7 +11,7 @@ } -{name} + {#if expanded}
    @@ -28,12 +28,14 @@ {/if} diff --git a/documentation/examples/21-miscellaneous/02-immutable-data/MutableTodo.svelte b/documentation/examples/21-miscellaneous/02-immutable-data/MutableTodo.svelte index 8e9676e75fd6..f92468ab79f7 100644 --- a/documentation/examples/21-miscellaneous/02-immutable-data/MutableTodo.svelte +++ b/documentation/examples/21-miscellaneous/02-immutable-data/MutableTodo.svelte @@ -4,23 +4,25 @@ export let todo; - let div; + let btn; afterUpdate(() => { - flash(div); + flash(btn); }); -
    +
    +