mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
28 lines
642 B
TypeScript
28 lines
642 B
TypeScript
import type { SvelteComponentTyped } from "svelte";
|
|
import type { SvelteHTMLElements } from "svelte/elements";
|
|
|
|
type $RestProps = SvelteHTMLElements["a"];
|
|
|
|
type $Props = {
|
|
/**
|
|
* 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 type HeaderPanelLinkProps = Omit<$RestProps, keyof $Props> & $Props;
|
|
|
|
export default class HeaderPanelLink extends SvelteComponentTyped<
|
|
HeaderPanelLinkProps,
|
|
{ click: WindowEventMap["click"] },
|
|
{ default: {} }
|
|
> {}
|