Svelte requires slot names to be static strings. Here's how to go beyond this limitation cleanly, without hacks, by leveraging Svelte's own execution model.
If you develop Svelte components, you've probably needed dynamically named slots at some point — that is, slots whose name depends on runtime data.