carbon-components-svelte/types/UIShell/HeaderPanelLink.svelte.d.ts
Eric Liu 2f026f792a
feat(typescript)!: support svelte 4 (#1773)
Closes #1753 

The minimum Svelte version required for TypeScript users is now 3.55.
2023-07-19 09:44:56 -07:00

26 lines
605 B
TypeScript

import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["a"];
export interface HeaderPanelLinkProps extends RestProps {
/**
* Specify the `href` attribute
* @default undefined
*/
href?: string;
/**
* Obtain a reference to the HTML anchor element
* @default null
*/
ref?: null | HTMLAnchorElement;
[key: `data-${string}`]: any;
}
export default class HeaderPanelLink extends SvelteComponentTyped<
HeaderPanelLinkProps,
{ click: WindowEventMap["click"] },
{ default: {} }
> {}