document $$props

pull/2132/head
Richard Harris 7 years ago
parent 80a393cdb2
commit 20d12328de

@ -6,4 +6,6 @@ If you have an object of properties, you can 'spread' them on to a component ins
```html ```html
<Info {...pkg}/> <Info {...pkg}/>
``` ```
> Conversely, if you need to reference all the props that were passed into a component, including ones that weren't declared with `export`, you can do so by accessing `$$props` directly. It's not generally recommended, as it's difficult for Svelte to optimise, but it's useful in rare cases.
Loading…
Cancel
Save