import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["a"] & SvelteHTMLElements["button"] & SvelteHTMLElements["div"]; type $Props = { /** * Set to `true` to render a `button` element instead of a `div` * @default false */ interactive?: boolean; /** * Set to `true` to disable the list item * @default false */ disabled?: boolean; /** * Set to `true` to mark an `interactive` or `href` item as the current * one, such as the item whose details show beside the list. It gets a * selected fill and `aria-current`. * @default false */ selected?: boolean; /** * Specify the `href` attribute. * Renders an anchor with clickable styles. Takes precedence over `interactive`. */ href?: string | undefined; /** * Specify the icon to render. * Icon is rendered to the left of the item content. */ icon?: Icon | undefined; action?: (this: void) => void; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type ContainedListItemProps = Omit<$RestProps, keyof $Props> & $Props; export default class ContainedListItem extends SvelteComponentTyped< ContainedListItemProps, { click: WindowEventMap["click"] }, { default: Record; action: Record; } > {}