From 580b6020ad59014147337bd16dcb1347e8c120a1 Mon Sep 17 00:00:00 2001 From: paring Date: Fri, 3 Jan 2025 17:56:42 +0900 Subject: [PATCH] fix: button attributes type --- src/lib/components/Button.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/Button.svelte b/src/lib/components/Button.svelte index c492f29..e537edc 100644 --- a/src/lib/components/Button.svelte +++ b/src/lib/components/Button.svelte @@ -3,10 +3,10 @@ import { useActions, type ActionArray } from 'svelte-component-actions' import Icon from './Icon.svelte' import { emptyMeltElement, melt, type AnyMeltElement } from '@melt-ui/svelte' - import type { HTMLAnchorAttributes, HTMLAttributes } from 'svelte/elements' + import type { HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements' type BaseProps = - | ({ link?: false } & HTMLAttributes) + | ({ link?: false } & HTMLButtonAttributes) | ({ link: true } & HTMLAnchorAttributes) type Props = BaseProps & {