~james/core

core/web/src/lib/components/settings/DocsButton.svelte -rw-r--r-- 536 bytes
452f17b7 — james chore(import): snapshot james.dad.town/core at f70c71c7696a 15 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<script lang="ts">
	import { button, buttonIcon } from "#lib/components/ui/Button.svelte";
	import Book from "$icon/book";

	interface Props {
		href: string;
		label?: string;
	}

	let { href, label = "Documentation" }: Props = $props();
</script>

<a {href} rel="external noopener noreferrer" class={button({ iconSide: "left" })}>
	<span
		class="inline-flex min-w-0 items-center justify-center gap-[inherit] transition-transform duration-150 ease-in-out"
	>
		<Book class={buttonIcon()} aria-hidden="true" />
		{label}
	</span>
</a>