mirror of
https://github.com/djkotowski/personal-website.git
synced 2026-06-20 13:02:47 -05:00
Update Svelte and other dependencies
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
<script lang="ts">
|
||||
import type { HTMLAnchorAttributes } from 'svelte/elements'
|
||||
type LinkProps = { children: any, href: string; target: HTMLAnchorAttributes['target']; title?: HTMLAnchorAttributes['title'] }
|
||||
|
||||
export let href: string
|
||||
export let target: HTMLAnchorAttributes['target']
|
||||
export let title: HTMLAnchorAttributes['title'] = undefined
|
||||
let { children, href, target, title }: LinkProps = $props()
|
||||
</script>
|
||||
|
||||
<a class="text-cyan-200 hover:text-cyan-400 hover:border-b border-dotted" {href} {target} {title}><slot /></a>
|
||||
<a class="text-cyan-200 hover:text-cyan-400 hover:border-b border-dotted" {href} {target} {title}>{@render children?.()}</a>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user