Skip to content

Commit 27ac8e9

Browse files
committed
docs: format Svelte 5 notes
1 parent 9760894 commit 27ac8e9

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

README-svelte-5.md

+16-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,22 @@
1919
import { CartesianWithRunes as Cartesian } from "svelte-cartesian"
2020
</script>
2121

22-
{#snippet children()} Click me {/snippet} <Cartesian Component={Button}
23-
props={{ variant: ['primary', 'secondary'], size: ['medium', 'large'],
24-
children: [children] }} />
22+
<!-- define snippet possibilities -->
23+
{#snippet children()}
24+
Click me
25+
{/snippet}
26+
27+
<!--
28+
Pass in prop and Snippet possibilities as an array of values.
29+
-->
30+
<Cartesian
31+
Component={Button}
32+
props={{
33+
variant: ['primary', 'secondary'],
34+
size: ['medium', 'large'],
35+
children: [children]
36+
}}
37+
/>
2538
```
2639

2740
3. Pass props with array of potential values, including an explicit `undefined`

0 commit comments

Comments
 (0)