let | Yes | boolean | false | Set to `true` to open the combobox menu dropdown |
| value | No | let | Yes | string | "" | Specify the selected combobox value |
| selectedId | No | let | Yes | ComboBoxItemId | undefined | Set the selected item by value id |
-| items | No | let | No | ReadonlyArray | [] | Set the combobox items |
-| itemToString | No | let | No | (item: ComboBoxItem) => string | (item) => item.text || item.id | Override the display of a combobox item |
+| items | No | let | No | ReadonlyArray | [] | Set the combobox items |
+| itemToString | No | let | No | (item: Item) => string | (item) => item.text || item.id | Override the display of a combobox item |
| direction | No | let | No | "bottom" | "top" | "bottom" | Specify the direction of the combobox dropdown menu |
| size | No | let | No | "sm" | "xl" | undefined | Set the size of the combobox |
| disabled | No | let | No | boolean | false | Set to `true` to disable the combobox |
@@ -683,7 +683,7 @@ export interface ComboBoxItem {
| light | No | let | No | boolean | false | Set to `true` to enable the light variant |
| allowCustomValue | No | let | No | boolean | false | Set to `true` to allow custom values that are not in the items list.let | No | boolean | false | Set to `true` to clear the input value when opening the dropdown.let | No | (item: ComboBoxItem, value: string) => boolean | () => true | Determine if an item should be filtered given the current combobox value |
+| shouldFilterItem | No | let | No | (item: Item, value: string) => boolean | () => true | Determine if an item should be filtered given the current combobox value |
| translateWithId | No | let | No | (id: import("../ListBox/ListBoxMenuIcon.svelte").ListBoxMenuIconTranslationId) => string | undefined | Override the chevron icon label based on the open state.let | No | (id: "clearSelection") => string | undefined | Override the label of the clear button when the input has a selection.let | No | string | "ccs-" + Math.random().toString(36) | Set an id for the list box component |
@@ -692,24 +692,24 @@ export interface ComboBoxItem {
### Slots
-| Slot name | Default | Props | Fallback |
-| :-------- | :------ | :-------------------------------------------------- | :-------------------------------- |
-| -- | Yes | { item: ComboBoxItem; index: number } | {itemToString(item)} |
-| titleText | No | Record | {titleText} |
+| Slot name | Default | Props | Fallback |
+| :-------- | :------ | :------------------------------------------ | :-------------------------------- |
+| -- | Yes | { item: Item; index: number } | {itemToString(item)} |
+| titleText | No | Record | {titleText} |
### Events
-| Event name | Type | Detail | Description |
-| :--------- | :--------- | :---------------------------------------------------------------------- | :---------- |
-| select | dispatched | { selectedId: ComboBoxItemId; selectedItem: ComboBoxItem } | -- |
-| clear | forwarded | -- | -- |
-| input | forwarded | -- | -- |
-| keydown | forwarded | -- | -- |
-| keyup | forwarded | -- | -- |
-| focus | forwarded | -- | -- |
-| blur | forwarded | -- | -- |
-| paste | forwarded | -- | -- |
-| scroll | forwarded | -- | -- |
+| Event name | Type | Detail | Description |
+| :--------- | :--------- | :-------------------------------------------------------------- | :---------- |
+| select | dispatched | { selectedId: ComboBoxItemId; selectedItem: Item } | -- |
+| clear | forwarded | -- | -- |
+| input | forwarded | -- | -- |
+| keydown | forwarded | -- | -- |
+| keyup | forwarded | -- | -- |
+| focus | forwarded | -- | -- |
+| blur | forwarded | -- | -- |
+| paste | forwarded | -- | -- |
+| scroll | forwarded | -- | -- |
## `ComposedModal`
diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json
index bb226bb374..7fca1e2b7c 100644
--- a/docs/src/COMPONENT_API.json
+++ b/docs/src/COMPONENT_API.json
@@ -1821,7 +1821,7 @@
"name": "items",
"kind": "let",
"description": "Set the combobox items",
- "type": "ReadonlyArray