replace google material icons with phosphor icons

This commit is contained in:
Elijah Duffy
2025-07-10 16:25:27 -07:00
parent 355850d1f2
commit 5f4e50a652
7 changed files with 59 additions and 27 deletions

View File

@@ -1,9 +1,10 @@
<script lang="ts">
import type { Snippet } from 'svelte';
import type { ClassValue, MouseEventHandler } from 'svelte/elements';
import { defaultIconProps, type IconDef } from './util';
interface Props {
icon?: string;
icon?: IconDef;
iconPosition?: 'left' | 'right';
disabled?: boolean;
class?: ClassValue | null | undefined;
@@ -22,7 +23,9 @@
</script>
{#snippet iconSnippet()}
<span class="material-symbols-outlined">{icon}</span>
{#if icon}
<icon.component {...icon.props || defaultIconProps} />
{/if}
{/snippet}
<button