diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 052c625c..f73e336c 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -1195,7 +1195,9 @@ export interface DropdownItem { ### Slots -None. +| Slot name | Default | Props | Fallback | +| :-------- | :------ | :--------------------------------------------------- | :-------------------------------- | +| -- | Yes | { item: DropdownItem; index: number; } | {itemToString(item)} | ### Events diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index f7698d84..f7b458eb 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -3311,7 +3311,14 @@ } ], "moduleExports": [], - "slots": [], + "slots": [ + { + "name": "__default__", + "default": true, + "fallback": "{itemToString(item)}", + "slot_props": "{ item: DropdownItem; index: number; }" + } + ], "events": [ { "type": "dispatched", diff --git a/types/Dropdown/Dropdown.svelte.d.ts b/types/Dropdown/Dropdown.svelte.d.ts index 79054f9e..2140b9bd 100644 --- a/types/Dropdown/Dropdown.svelte.d.ts +++ b/types/Dropdown/Dropdown.svelte.d.ts @@ -153,5 +153,5 @@ export default class Dropdown extends SvelteComponentTyped< selectedItem: DropdownItem; }>; }, - {} + { default: { item: DropdownItem; index: number } } > {}