11 lines
560 B
Svelte
11 lines
560 B
Svelte
<!-- SPDX-License-Identifier: CPAL-1.0
|
|
- Copyright (c) 2026 Marek Novák. Part of Ianitor, under the Common Public Attribution
|
|
- License 1.0: see LICENSE (its Exhibit A is this file's notice). -->
|
|
<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>
|