Skip to content

Commit

Permalink
Merge pull request #20 from huntabyte/fix/radio-button-types
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Aug 12, 2023
2 parents 29d8e10 + 1b3a7d2 commit c3d13d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/thirty-pillows-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@huntabyte/primitives": patch
---

fix radio button type
4 changes: 2 additions & 2 deletions src/lib/primitives/radio-group/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {
RadioGroupComponentEvents,
RadioGroupItemProps
} from "@melt-ui/svelte";
import type { HTMLInputAttributes } from "svelte/elements";
import type { HTMLButtonAttributes, HTMLInputAttributes } from "svelte/elements";

type Props = Expand<
OmitValue<CreateRadioGroupProps> & {
Expand All @@ -27,7 +27,7 @@ type ItemProps = Expand<
asChild?: boolean;
}
> &
HTMLButtonElement;
HTMLButtonAttributes;

type ItemEvents = RadioGroupComponentEvents["item"] & KeydownClickEvents;

Expand Down

0 comments on commit c3d13d4

Please sign in to comment.