feat: make icons slottable

This commit is contained in:
Eric Liu 2022-03-19 11:30:51 -07:00
commit 8591c592fe
7 changed files with 48 additions and 19 deletions

View file

@ -26,7 +26,9 @@
rel="{$$restProps.target === '_blank' ? 'noopener noreferrer' : undefined}"
{...$$restProps}
>
<svelte:component this="{icon}" />
<slot name="icon">
<svelte:component this="{icon}" />
</slot>
</a>
<style>