mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-16 23:18:48 +00:00
29 lines
615 B
Svelte
29 lines
615 B
Svelte
<script lang="ts">
|
|
import type { ClassValue } from "svelte/elements";
|
|
import { IconLabel } from "$lib/components/molecules";
|
|
|
|
import IconCategory from "~icons/material-symbols/category";
|
|
|
|
interface Props {
|
|
class?: ClassValue;
|
|
name: string;
|
|
subtext?: string;
|
|
textClass?: ClassValue;
|
|
}
|
|
|
|
let { class: className, name, subtext, textClass: textClassName }: Props = $props();
|
|
</script>
|
|
|
|
{#snippet subtextSnippet()}
|
|
{subtext}
|
|
{/snippet}
|
|
|
|
<IconLabel
|
|
icon={IconCategory}
|
|
subtext={subtext ? subtextSnippet : undefined}
|
|
class={className}
|
|
textClass={textClassName}
|
|
>
|
|
{name}
|
|
</IconLabel>
|