From b337e528ce05528e4ff5927ce5d51125465f059a Mon Sep 17 00:00:00 2001 From: vages Date: Sat, 10 Aug 2019 16:18:03 +0000 Subject: [PATCH] Document $$props This was explained in the tutorial, but I could not find any documentation on it in the docs. --- site/content/docs/02-template-syntax.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/site/content/docs/02-template-syntax.md b/site/content/docs/02-template-syntax.md index ae07c90993..aaa052df3b 100644 --- a/site/content/docs/02-template-syntax.md +++ b/site/content/docs/02-template-syntax.md @@ -94,6 +94,12 @@ An element or component can have multiple spread attributes, interspersed with r ``` +*`$$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 + +``` + ### Text expressions