From 9d1aa699b6a4ea3772a1b2bc06e6dc1170575316 Mon Sep 17 00:00:00 2001 From: Jinay Patel <78944617+Github11200@users.noreply.github.com> Date: Sat, 30 Aug 2025 05:38:50 -0700 Subject: [PATCH] Docs: Updated the custom elements documentation to include $host (#16686) * Updated the custom elements documentation to include * moved the rune reference further up * Small update to the sentence * updated the formatting * Update documentation/docs/07-misc/04-custom-elements.md --------- Co-authored-by: Rich Harris --- documentation/docs/07-misc/04-custom-elements.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/07-misc/04-custom-elements.md b/documentation/docs/07-misc/04-custom-elements.md index 7e6a17b947..4e5afff7d2 100644 --- a/documentation/docs/07-misc/04-custom-elements.md +++ b/documentation/docs/07-misc/04-custom-elements.md @@ -4,7 +4,7 @@ title: Custom elements -Svelte components can also be compiled to custom elements (aka web components) using the `customElement: true` compiler option. You should specify a tag name for the component using the `` [element](svelte-options). +Svelte components can also be compiled to custom elements (aka web components) using the `customElement: true` compiler option. You should specify a tag name for the component using the `` [element](svelte-options). Within the custom element you can access the host element via the [`$host`](https://svelte.dev/docs/svelte/$host) rune. ```svelte