mirror of
https://github.com/Blah-IM/Weblah.git
synced 2025-07-06 22:15:34 +00:00
wip
This commit is contained in:
parent
67803041cf
commit
766d50adc6
4 changed files with 53 additions and 6 deletions
16
src/lib/components/Link.svelte
Normal file
16
src/lib/components/Link.svelte
Normal 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
|
||||
>
|
Loading…
Add table
Add a link
Reference in a new issue