import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["a"]; type $Props = { /** * Specify the `href` attribute. */ href?: string | undefined; /** * Specify the text. */ text?: string | undefined; /** * Specify an icon to render after the text. * Alternatively, use the "icon" slot. */ icon?: Icon | undefined; /** * Set to `true` to select the item * @default false */ isSelected?: boolean; /** * Obtain a reference to the HTML anchor element. * @default null */ ref?: null | HTMLAnchorElement; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type HeaderNavItemProps = Omit<$RestProps, keyof $Props> & $Props; export default class HeaderNavItem extends SvelteComponentTyped< HeaderNavItemProps, { blur: WindowEventMap["blur"]; click: WindowEventMap["click"]; focus: WindowEventMap["focus"]; keydown: WindowEventMap["keydown"]; keyup: WindowEventMap["keyup"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; }, { default: Record; icon: Record; } > {}