Skip to content

Commit

Permalink
fix: Updated ComboboxLabelProps to use HTMLLabelAttributes (#544)
Browse files Browse the repository at this point in the history
Co-authored-by: Hunter Johnston <64506580+huntabyte@users.noreply.github.com>
  • Loading branch information
jeannemas and huntabyte authored May 17, 2024
1 parent c71f987 commit 1691ef9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fresh-islands-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bits-ui": patch
---

fix: Updated `ComboboxLabelProps` to use `HTMLLabelAttributes`
4 changes: 2 additions & 2 deletions packages/bits-ui/src/lib/bits/combobox/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { EventHandler, HTMLInputAttributes } from "svelte/elements";
import type { EventHandler, HTMLInputAttributes, HTMLLabelAttributes } from "svelte/elements";
import type {
ComboboxOptionProps as MeltComboboxOptionProps,
CreateComboboxProps as MeltComboboxProps,
Expand Down Expand Up @@ -113,7 +113,7 @@ export type ComboboxContentProps<
> = ComboboxContentPropsWithoutHTML<T, In, Out> & HTMLDivAttributes;

export type ComboboxInputProps = ComboboxInputPropsWithoutHTML & HTMLInputAttributes;
export type ComboboxLabelProps = ComboboxLabelPropsWithoutHTML & HTMLDivAttributes;
export type ComboboxLabelProps = ComboboxLabelPropsWithoutHTML & HTMLLabelAttributes;

export type ComboboxGroupProps = ComboboxGroupPropsWithoutHTML & HTMLDivAttributes;
export type ComboboxGroupLabelProps = ComboboxGroupLabelPropsWithoutHTML & HTMLDivAttributes;
Expand Down

0 comments on commit 1691ef9

Please sign in to comment.