@svelte-plugins/tooltips
Version:
A simple tooltip action and component designed for Svelte.
62 lines (61 loc) • 1.87 kB
TypeScript
/** @typedef {typeof __propDef.props} TooltipProps */
/** @typedef {typeof __propDef.events} TooltipEvents */
/** @typedef {typeof __propDef.slots} TooltipSlots */
export default class Tooltip extends SvelteComponentTyped<{
action?: string | undefined;
content?: string | {
component: any;
props?: Record<string, any> | undefined;
} | undefined;
align?: string | undefined;
position?: string | undefined;
maxWidth?: number | undefined;
style?: {
[x: string]: any;
} | null | undefined;
theme?: string | undefined;
animation?: string | undefined;
delay?: number | undefined;
arrow?: boolean | undefined;
autoPosition?: boolean | undefined;
show?: boolean | undefined;
hideOnClickOutside?: boolean | undefined;
}, {
[evt: string]: CustomEvent<any>;
}, {
default: {};
}> {
}
export type TooltipProps = typeof __propDef.props;
export type TooltipEvents = typeof __propDef.events;
export type TooltipSlots = typeof __propDef.slots;
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {
props: {
action?: string | undefined;
content?: string | {
component: any;
props?: Record<string, any> | undefined;
} | undefined;
align?: string | undefined;
position?: string | undefined;
maxWidth?: number | undefined;
style?: {
[x: string]: any;
} | null | undefined;
theme?: string | undefined;
animation?: string | undefined;
delay?: number | undefined;
arrow?: boolean | undefined;
autoPosition?: boolean | undefined;
show?: boolean | undefined;
hideOnClickOutside?: boolean | undefined;
};
events: {
[evt: string]: CustomEvent<any>;
};
slots: {
default: {};
};
};
export {};