mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 08:06:56 +00:00
31 lines
805 B
Svelte
31 lines
805 B
Svelte
<script lang="ts">
|
|
import type { Component, Snippet } from "svelte";
|
|
import type { ClassValue, SvelteHTMLElements } from "svelte/elements";
|
|
import { EntryButton } from "$lib/components/atoms";
|
|
import { IconLabel } from "$lib/components/molecules";
|
|
|
|
interface Props {
|
|
children: Snippet;
|
|
class?: ClassValue;
|
|
icon: Component<SvelteHTMLElements["svg"]>;
|
|
iconClass?: ClassValue;
|
|
onclick?: () => void;
|
|
textClass?: ClassValue;
|
|
}
|
|
|
|
let {
|
|
children,
|
|
class: className,
|
|
icon,
|
|
iconClass: iconClassName,
|
|
onclick,
|
|
textClass: textClassName,
|
|
}: Props = $props();
|
|
</script>
|
|
|
|
<EntryButton {onclick} class={className}>
|
|
<IconLabel {icon} class="h-full" iconClass={iconClassName} textClass={textClassName}>
|
|
{@render children()}
|
|
</IconLabel>
|
|
</EntryButton>
|