Skip to content

Commit f5d9c60

Browse files
Sync svelte docs (#750)
sync svelte docs Co-authored-by: Rich-Harris <[email protected]>
1 parent fae6640 commit f5d9c60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/svelte.dev/content/docs/svelte/07-misc/04-custom-elements.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ console.log(el.name);
4949
el.name = 'everybody';
5050
```
5151

52+
Note that you need to list out all properties explicitly, i.e. doing `let props = $props()` without declaring `props` in the [component options](#Component-options) means that Svelte can't know which props to expose as properties on the DOM element.
53+
5254
## Component lifecycle
5355

5456
Custom elements are created from Svelte components using a wrapper approach. This means the inner Svelte component has no knowledge that it is a custom element. The custom element wrapper takes care of handling its lifecycle appropriately.

0 commit comments

Comments
 (0)