@senka-ai/ui
Version:
A modern, type-safe Svelte 5 UI component library with full theme support, accessibility standards, and robust state management patterns
29 lines • 1.2 kB
TypeScript
import type { BaseProps, ChildrenComponent } from '../../type/component';
/**
* Tooltip component props interface
* Provides contextual information with title and description
*/
interface Props extends BaseProps, ChildrenComponent {
/** The title text displayed in the tooltip */
title?: string;
/** The description text displayed below the title */
description?: string;
/** Position of the tooltip relative to the trigger */
position?: 'top' | 'bottom' | 'left' | 'right';
/** Size of the tooltip @default 'medium' */
size?: 'auto' | 'small' | 'medium' | 'large';
/** Whether to show the title @default true */
showTitle?: boolean;
/** Whether to show the description @default true */
showDescription?: boolean;
/** Whether the tooltip is currently visible (controlled mode) */
open?: boolean;
/** Delay in milliseconds before showing tooltip on hover @default 500 */
delay?: number;
/** Custom content for the trigger element */
trigger?: any;
}
declare const Tooltip: import("svelte").Component<Props, {}, "">;
type Tooltip = ReturnType<typeof Tooltip>;
export default Tooltip;
//# sourceMappingURL=Tooltip.svelte.d.ts.map