UNPKG

@sandlada/mdc

Version:

@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.

41 lines 1.44 kB
/** * @license * Copyright 2026 Kai-Orion & Sandlada * SPDX-License-Identifier: MIT */ import type { LitElement } from 'lit'; /** * Position of the tooltip relative to its anchor. */ export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right'; /** * A tooltip adds context to an element. * Supports plain and rich variants via slots. */ export interface ITooltip extends LitElement { /** Position of the tooltip. */ position: TooltipPosition; /** Whether the tooltip is visible. */ open: boolean; /** Whether this is a plain tooltip (auto-detected from slots). */ plain: boolean; /** Whether the tooltip has content. */ hasContent: boolean; /** Whether the tooltip has action buttons (rich only). */ hasActions: boolean; } /** * Detail payload of tooltip events. */ export interface ITooltipShowEventDetail { tooltip: ITooltip; } /** Name of the event fired when the tooltip starts showing. */ export declare const TOOLTIP_SHOWING_EVENT = "tooltip-showing"; /** Name of the event fired when the tooltip is fully visible. */ export declare const TOOLTIP_SHOWN_EVENT = "tooltip-shown"; /** Name of the event fired when the tooltip starts hiding. */ export declare const TOOLTIP_HIDING_EVENT = "tooltip-hiding"; /** Name of the event fired when the tooltip is fully hidden. */ export declare const TOOLTIP_HIDDEN_EVENT = "tooltip-hidden"; //# sourceMappingURL=tooltip.interface.d.ts.map