mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-04 16:14:24 +02:00
13 lines
340 B
Svelte
13 lines
340 B
Svelte
<script lang="ts">
|
|
export let href: string;
|
|
|
|
// rel is passed by MDsveX, but we don't need it, so we just ignore it
|
|
// no way to change this behavior atm (https://github.com/pngwn/MDsveX/issues/609)
|
|
export let rel: string = "";
|
|
rel;
|
|
</script>
|
|
|
|
<a target="_blank" rel="noopener noreferrer" {href}>
|
|
<slot></slot>
|
|
</a>
|