Is it not possible to allow svelte components to automatically apply all regular html attributes to the top most element within the component?
Component.html
<div>
<slot></slot>
</div>
Application.html
<div>
<Component class="extend">
Some text
</Component>
</div>
And have the .extend added to the div inside the Component?