Files
ianitor/packages/ui/src/Icon.svelte
T

11 lines
570 B
Svelte

<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at https://mozilla.org/MPL/2.0/. -->
<script lang="ts">
import { ICONS, type IconName } from "./icons";
let { name, class: cls = "" }: { name: IconName; class?: string } = $props();
</script>
<svg class="ia-icon {cls}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d={ICONS[name]} /></svg>