Closed holubond closed 2 years ago
Good catch! Types weren't exported correctly ^^
I've added them in version 4.1.3, so you can use it like this:
<script lang="ts">
import { Icon, Home, type IconSource } from "svelte-hero-icons"
export let icon: IconSource = Home
</script>
<Icon src={icon} />
@JustinVoitel That was blazingly fast, thanks!
Hi (sorry for a noob question),
I'm having issues importing the
IconSource
type, could you please lead me in the right direction?I want to do this so I can use the type for having correctly typed props for a custom component.
Thank you!