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; 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"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; }, { default: Record } > {}