carbon-components-svelte
Version:
Svelte implementation of the Carbon Design System
27 lines (21 loc) • 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: {} }
> {}