From c53e09a445bea358c786c1e09c028a4d54443731 Mon Sep 17 00:00:00 2001 From: EmNudge Date: Sun, 27 Jun 2021 12:05:53 -0400 Subject: [PATCH] docs: clarified readonly prop access (#5825) --- site/content/docs/01-component-format.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site/content/docs/01-component-format.md b/site/content/docs/01-component-format.md index 30c53b225f..c7bcfaa800 100644 --- a/site/content/docs/01-component-format.md +++ b/site/content/docs/01-component-format.md @@ -57,6 +57,8 @@ In development mode (see the [compiler options](docs#svelte_compile)), a warning If you export a `const`, `class` or `function`, it is readonly from outside the component. Function *expressions* are valid props, however. +Readonly props can be accessed as properties on the element, tied to the component using [`bind:this` syntax](docs#bind_element). + ```sv