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

40
types/Head/HeadIdentity.d.ts vendored Normal file
View file

@ -0,0 +1,40 @@
/// <reference types="svelte" />
export interface HeadIdentityProps {
/**
* Specify the href attribute
*/
title?: string;
/**
* Specify the subtitle attribute
*/
subtitle?: string;
/**
* Specify the imgSrc attribute
*/
imgSrc?: string;
/**
* Set the imgSize of the head
* @default 'normal'
*/
imgSize?: "small" | "normal" | "large";
/**
* Set the titleSize of the head
* @default 'normal'
*/
titleSize?: "small" | "normal" | "large";
}
export default class HeadIdentity {
$$prop_def: HeadIdentityProps;
$$slot_def: {
default: {};
tabs: {};
};
$on(eventname: string, cb: (event: Event) => void): () => void;
}