Skip to content

Commit 793f6f3

Browse files
authored
add note about svelte/elements to $props docs (#14829)
1 parent f5c2850 commit 793f6f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

documentation/docs/02-runes/05-$props.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,6 @@ You can, of course, separate the type declaration from the annotation:
196196
</script>
197197
```
198198

199+
> [!NOTE] Interfaces for native DOM elements are provided in the `svelte/elements` module (see [Typing wrapper components](typescript#Typing-wrapper-components))
200+
199201
Adding types is recommended, as it ensures that people using your component can easily discover which props they should provide.

0 commit comments

Comments
 (0)