import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["a"] & SvelteHTMLElements["button"]; type $Props = { /** * Specify the `href` attribute to render an anchor. * Omit it to render a button (for actions that do not navigate). */ href?: string | undefined; /** * Specify the label text. * Alternatively, use the default slot. */ text?: string | undefined; /** * Specify an icon to render after the label. * Alternatively, use the "icon" slot. */ icon?: Icon | undefined; /** * Set to `true` to mark the link as the current selection * @default false */ isSelected?: boolean; /** * Obtain a reference to the HTML element (anchor or button). * @default null */ ref?: null | HTMLAnchorElement | HTMLButtonElement; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type HeaderPanelLinkProps = Omit<$RestProps, keyof $Props> & $Props; export default class HeaderPanelLink extends SvelteComponentTyped< HeaderPanelLinkProps, { click: WindowEventMap["click"]; keydown: WindowEventMap["keydown"]; }, { default: Record; icon: Record; } > {}