diff --git a/src/lib/components/IconButton.svelte b/src/lib/components/IconButton.svelte index e44e2a3..fcbeeaa 100644 --- a/src/lib/components/IconButton.svelte +++ b/src/lib/components/IconButton.svelte @@ -6,6 +6,7 @@ */ import Icon from "@iconify/svelte"; import "$lib/iconify-offline"; + import type { HTMLButtonAttributes, HTMLAnchorAttributes } from "svelte/elements"; type Size = "sm" | "md"; type Variant = "surface" | "ghost"; @@ -29,8 +30,8 @@ variant?: Variant; disabled?: boolean; class?: string; - [key: string]: unknown; - } = $props(); + } & HTMLButtonAttributes & + HTMLAnchorAttributes = $props(); const sizeClass: Record = { sm: "size-7", md: "size-9" }; const iconClass: Record = { sm: "size-4", md: "size-5" }; diff --git a/src/lib/components/blocks/CalendarCompactBlock.svelte b/src/lib/components/blocks/CalendarCompactBlock.svelte index 30621e0..d967093 100644 --- a/src/lib/components/blocks/CalendarCompactBlock.svelte +++ b/src/lib/components/blocks/CalendarCompactBlock.svelte @@ -1,6 +1,6 @@