diff --git a/src/lib/components/Button.svelte b/src/lib/components/Button.svelte index ce2e0d0..ea659a5 100755 --- a/src/lib/components/Button.svelte +++ b/src/lib/components/Button.svelte @@ -5,6 +5,7 @@ export let type: 'primary' | 'outline' | 'fancyOutline' = 'primary' export let href: string | undefined = undefined + export let newTab = false $: classes = cn( 'animate rounded text-sm font-bold hover:scale-[1.01] active:scale-100', @@ -26,6 +27,7 @@ {href} role="button" tabindex="0" + target={newTab ? '_blank' : undefined} class={classes} on:click > diff --git a/src/lib/components/Card.svelte b/src/lib/components/Card.svelte index 20fd533..a4be9f8 100644 --- a/src/lib/components/Card.svelte +++ b/src/lib/components/Card.svelte @@ -95,7 +95,9 @@ on:mouseenter on:mouseleave > -
+
Nothing in the slot here
@@ -107,7 +109,7 @@