carbon-components-svelte
Version:
Svelte implementation of the Carbon Design System
31 lines (23 loc) • 698 B
TypeScript
import { 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;
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"] },
{ default: Record<string, never> }
> {}