Document $$props

This was explained in the tutorial, but I could not find any documentation on it in the docs.
pull/3387/head
vages 5 years ago committed by GitHub
parent 2ef004e324
commit 73a21b855a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -94,6 +94,12 @@ 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