add custom head component

This commit is contained in:
Daniel Miedzik 2021-01-14 16:36:52 +01:00
commit 36d20a5a2f
18 changed files with 727 additions and 3 deletions

26
types/Head/HeadAction.d.ts vendored Normal file
View file

@ -0,0 +1,26 @@
/// <reference types="svelte" />
export interface HeadActionProps {
/**
* Specify the href attribute
*/
href?: string;
/**
* Specify the icon from `carbon-icons-svelte` to render
*/
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
/**
* Specify the description
*/
description?: string;
}
export default class HeadAction {
$$prop_def: HeadActionProps;
$$slot_def: {};
$on(eventname: "click", cb: (event: WindowEventMap["click"]) => void): () => void;
$on(eventname: string, cb: (event: Event) => void): () => void;
}