UNPKG

@svelte-plugins/tooltips

Version:

A simple tooltip action and component designed for Svelte.

54 lines (53 loc) 1.85 kB
/** @typedef {typeof __propDef.props} ActionTooltipProps */ /** @typedef {typeof __propDef.events} ActionTooltipEvents */ /** @typedef {typeof __propDef.slots} ActionTooltipSlots */ export default class ActionTooltip extends SvelteComponentTyped<{ targetElement?: HTMLElement | null | undefined; action?: string | undefined; content?: string | { component: any; props?: Record<string, any> | undefined; } | undefined; align?: string | undefined; position?: string | undefined; maxWidth?: number | undefined; style?: Record<string, string> | null | undefined; theme?: string | undefined; animation?: string | undefined; delay?: number | undefined; arrow?: boolean | undefined; autoPosition?: boolean | undefined; show?: boolean | undefined; }, { [evt: string]: CustomEvent<any>; }, {}> { } export type ActionTooltipProps = typeof __propDef.props; export type ActionTooltipEvents = typeof __propDef.events; export type ActionTooltipSlots = typeof __propDef.slots; import { SvelteComponentTyped } from "svelte"; declare const __propDef: { props: { targetElement?: HTMLElement | null | undefined; action?: string | undefined; content?: string | { component: any; props?: Record<string, any> | undefined; } | undefined; align?: string | undefined; position?: string | undefined; maxWidth?: number | undefined; style?: Record<string, string> | null | undefined; theme?: string | undefined; animation?: string | undefined; delay?: number | undefined; arrow?: boolean | undefined; autoPosition?: boolean | undefined; show?: boolean | undefined; }; events: { [evt: string]: CustomEvent<any>; }; slots: {}; }; export {};