I did not realise that the documentation for Svelte @attach amounts to a whole page now! Wanted to do a quick skim and now I can’t stop exploring… svelte.dev/docs/svelte/... And ICYMI: day 3 of Advent of Svelte 2025 has a quick intro to attach by @kenthropic.com advent.sveltesociety.dev/2025/3
Post
svelte.dev{@attach ...} • Svelte Docs{@attach ...} • Svelte documentation
FYI @attach supersedes actions (use:action), so if you’re interested in cool patterns, you’ll probably find more code examples / blog posts about Svelte actions. Like this one dev.to/a1guy/master...
dev.toMastering DOM Manipulation with Svelte Actions and ChildrenIn Svelte, Actions and Children are powerful tools that make your components more dynamic and...
0 reposts2 likes