import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["a"]; type $Props = { /** * Set to `true` to select the current link * @default false */ isSelected?: boolean; /** * Set to `true` to use the large variant * @default false */ large?: boolean; /** * Specify the `href` attribute. */ href?: string | undefined; /** * Specify the text. */ text?: string | undefined; /** * Specify the icon to render. */ icon?: Icon | undefined; /** * Obtain a reference to the HTML anchor element. * @default null */ ref?: null | HTMLAnchorElement; badge?: (this: void) => void; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type SideNavLinkProps = Omit<$RestProps, keyof $Props> & $Props; export default class SideNavLink extends SvelteComponentTyped< SideNavLinkProps, { click: WindowEventMap["click"] }, { default: Record; badge: Record; icon: Record; } > {}