docs: clarified readonly prop access (#5825)

pull/7738/head
EmNudge 5 years ago committed by GitHub
parent 458a184408
commit c53e09a445

@ -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
<script>
// these are readonly

Loading…
Cancel
Save