docs: fix code example (#13847)

pull/13849/head
Harry Allen 2 weeks ago committed by GitHub
parent 3d3c98f3b0
commit 86ef18165f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -107,7 +107,7 @@ In Svelte 5, the `$props` rune makes this straightforward without any additional
export { klass as class};---
+++let { class: klass, ...rest } = $props();+++
</script>
<button {class} {...---$$restProps---+++rest+++}>click me</button>
<button class={klass} {...---$$restProps---+++rest+++}>click me</button>
```
> [!DETAILS] Why we did this

Loading…
Cancel
Save