import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Set to `true` to enable the active state * @default false */ active?: boolean; /** * Set to `true` to enable the highlighted state * @default false */ highlighted?: boolean; /** * Set to `true` to disable the menu item * @default false */ disabled?: boolean; /** * Set to `true` to add inline padding for a left-aligned icon * @default false */ hasLeftIcon?: boolean; /** * Option element id. Used by the listbox highlight cursor. */ id?: string | undefined; /** * Hide the option without unmounting it (`filterMode="hide"`). * Omit or pass `true`; a boolean `false` must not reach the DOM. * @default false */ hidden?: boolean; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type ListBoxMenuItemProps = Omit<$RestProps, keyof $Props> & $Props; export default class ListBoxMenuItem extends SvelteComponentTyped< ListBoxMenuItemProps, { click: WindowEventMap["click"]; mousedown: WindowEventMap["mousedown"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; }, { default: Record } > {}