From 517a35cd57e7c443b53b3f13d05eeca71438f215 Mon Sep 17 00:00:00 2001 From: metonym Date: Tue, 19 Sep 2023 11:21:23 -0700 Subject: [PATCH] docs: add component comments --- .../docs/02-template-syntax/02-basic-markup.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/documentation/docs/02-template-syntax/02-basic-markup.md b/documentation/docs/02-template-syntax/02-basic-markup.md index e6192230d4..2a77bac0b6 100644 --- a/documentation/docs/02-template-syntax/02-basic-markup.md +++ b/documentation/docs/02-template-syntax/02-basic-markup.md @@ -138,3 +138,13 @@ Comments beginning with `svelte-ignore` disable warnings for the next block of m ``` + +You can document components with the `@component` tag. Component comments will appear when hovering over a component in your IDE using the [Svelte Language Server](https://github.com/sveltejs/language-tools). + +```svelte + +

Hello world

+```