From 8b693f0e5d6bfed89dfeea7aed3b42c33b353d45 Mon Sep 17 00:00:00 2001 From: 7nik Date: Fri, 29 May 2026 23:21:01 +0300 Subject: [PATCH] Mention since version of delcaration tags --- 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..3cf256edf7 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 in Svelte 5.56 and newer. + > [!NOTE] The [`{@const ...}`](@const) syntax is considered legacy — use declaration tags instead. When values should be reactive, you can use `$state` and `$derived`: