From a1345f7c6d6cf7c65e682cc7867f1864e7d02c62 Mon Sep 17 00:00:00 2001 From: Ottomated Date: Tue, 24 Dec 2024 10:30:45 -0800 Subject: [PATCH] add note about svelte/elements to $props docs --- documentation/docs/02-runes/05-$props.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/documentation/docs/02-runes/05-$props.md b/documentation/docs/02-runes/05-$props.md index 58e9b36f8e94..4b1775bf5a61 100644 --- a/documentation/docs/02-runes/05-$props.md +++ b/documentation/docs/02-runes/05-$props.md @@ -196,4 +196,6 @@ You can, of course, separate the type declaration from the annotation: ``` +> [!NOTE] Interfaces for native DOM elements are provided in the `svelte/elements` module (see [Typing wrapper components](typescript#Typing-wrapper-components)) + Adding types is recommended, as it ensures that people using your component can easily discover which props they should provide.