~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
27 lines · 645 B Raw History
<script lang="ts">
	import Icon from './Icon.svelte';

	// A link to another site, in a new tab, telling it nothing of this page.
	let { href, label }: { href: string; label: string } = $props();
</script>

<a class="link" {href} target="_blank" rel="noopener noreferrer"
	><span>{label}</span><Icon name="link-external" size={12} /></a
>

<style>
	.link {
		display: inline-flex;
		align-items: center;
		gap: var(--space-1);
		color: var(--mute);
		font-size: var(--text-sm);
		text-decoration: underline;
		text-decoration-color: var(--link-line);
		text-underline-offset: var(--space-0-5);
	}

	.link:hover {
		color: var(--fg);
	}
</style>