15 lines
287 B
Svelte
15 lines
287 B
Svelte
<script lang="ts">
|
|
import type { Snippet } from 'svelte';
|
|
|
|
interface Props {
|
|
children?: Snippet;
|
|
href?: string;
|
|
title?: string;
|
|
}
|
|
|
|
const { href = '', title = '', children }: Props = $props();
|
|
</script>
|
|
|
|
<a {href} {title} class="link link-primary">
|
|
{@render children?.()}
|
|
</a>
|