Merge pull request #3387 from Vages/patch-1

Document $$props
pull/3394/head
Rich Harris 5 years ago committed by GitHub
commit 804db10404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -94,6 +94,14 @@ An element or component can have multiple spread attributes, interspersed with r
<Widget {...things}/>
```
---
*`$$props`* references all props that are passed to a component including ones that are not declared with `export`. It is useful in rare cases, but not generally recommended, as it is difficult for Svelte to optimise.
```html
<Widget {...$$props}/>
```
### Text expressions

Loading…
Cancel
Save