This commit is contained in:
Shibo Lyu 2025-03-17 00:03:20 +08:00
parent 67803041cf
commit 766d50adc6
4 changed files with 53 additions and 6 deletions

View file

@ -0,0 +1,16 @@
<script lang="ts">
import { tw } from '$lib/tw';
export let href: string;
export let variant: 'primary' | 'secondary' = 'primary';
</script>
<a
{href}
class={tw(
'underline',
variant === 'primary'
? 'text-accent-600 dark:text-accent-500'
: 'text-accent-400 dark:text-accent-500'
)}><slot /></a
>