From 6a955758a67a3c9c80f58c45961c0db2a52d463f Mon Sep 17 00:00:00 2001 From: 7nik Date: Fri, 29 May 2026 23:22:55 +0300 Subject: [PATCH] docs: mention since version of delcaration tags (#18322) --- documentation/docs/03-template-syntax/11-declaration-tags.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/documentation/docs/03-template-syntax/11-declaration-tags.md b/documentation/docs/03-template-syntax/11-declaration-tags.md index 34b7164775..e0edaf6a38 100644 --- a/documentation/docs/03-template-syntax/11-declaration-tags.md +++ b/documentation/docs/03-template-syntax/11-declaration-tags.md @@ -20,6 +20,8 @@ Declaration tags define local variables inside markup with `const` or `let`: ``` +> [!NOTE] Declaration tags are available since Svelte 5.56. + > [!NOTE] The [`{@const ...}`](@const) syntax is considered legacy — use declaration tags instead. When values should be reactive, you can use `$state` and `$derived`: