Files
photon-tbw/src/lib/components/input/Link.svelte
T

17 lines
256 B
Svelte

<script lang="ts">
export let href: string
export let highlight: boolean
</script>
<a
{href}
class="inline-flex flex-row gap-2 {highlight
? 'text-sky-500'
: ''} hover:underline"
{...$$restProps}
>
<slot name="icon" />
<slot />
</a>