UNPKG

react-tooltip-z

Version:

Lightweight, customizable React tooltip component with hover, click, focus and manual trigger support.

17 lines (16 loc) 503 B
import React from "react"; import { TooltipPlacement } from "../types"; interface TooltipOptions { placement?: TooltipPlacement; delay?: number; backgroundColor?: string; } interface TooltipContextType { show: (content: React.ReactNode, target: HTMLElement, options?: TooltipOptions) => void; hide: () => void; } export declare const TooltipProvider: React.FC<{ children: React.ReactNode; }>; export declare const useTooltip: () => TooltipContextType; export {};