Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions documentation/docs/02-runes/05-$props.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ On the other side, inside `MyComponent.svelte`, we can receive props with the `$
<p>this component is {+++adjective+++}</p>
```

> [!NOTE] If you use destructuring with a `$props` declaration, the resulting variables will all be reactive.
## Fallback values

Destructuring allows us to declare fallback values, which are used if the parent component does not set a given prop (or the value is `undefined`):
Expand Down
Loading