...
This commit is contained in:
15
src/lib/components/link/Link.svelte
Normal file
15
src/lib/components/link/Link.svelte
Normal file
@@ -0,0 +1,15 @@
|
||||
<script lang="ts">
|
||||
import { twMerge } from 'tailwind-merge';
|
||||
export let href: string;
|
||||
</script>
|
||||
|
||||
<a
|
||||
{...$$restProps}
|
||||
{href}
|
||||
class={twMerge(
|
||||
'font-medium transition-colors hover:text-accent hover:underline',
|
||||
$$restProps['class']
|
||||
)}
|
||||
>
|
||||
<slot />
|
||||
</a>
|
||||
Reference in New Issue
Block a user