-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
Getting an error with the latest version of SvelteKit:
<script lang="ts">
import { DisclosureButton } from "@rgossiaux/svelte-headlessui";
</script>
<DisclosureButton as="a" href="foo" />
Type '{ as: "a"; href: string; }' is not assignable to type 'IntrinsicAttributes & Omit<TRenderProps<{ open: boolean; close: (focusableElement: HTMLElement | null) => void; }, "a", "button">, TInternalProps | ... 2 more ... | "unmount"> & { ...; } & { ...; }'.
Property 'href' does not exist on type 'IntrinsicAttributes & Omit<TRenderProps<{ open: boolean; close: (focusableElement: HTMLElement | null) => void; }, "a", "button">, TInternalProps | ... 2 more ... | "unmount"> & { ...; } & { ...; }'.
This error is confusing, as I'm pretty sure this code has been working just fine until recently.
Library version
1.0.2
bradyisom
Metadata
Metadata
Assignees
Labels
No labels