benjaminpalko/src/lib/markdown/renderers/Link.svelte
2025-06-05 20:27:42 -04:00

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>