From 7b033f09f6d7e220fdcab8e9d1c55b87a9587d11 Mon Sep 17 00:00:00 2001 From: Devyansh Yadav Date: Wed, 26 Jun 2024 11:13:34 +0530 Subject: [PATCH] Update TooltipControllerTypes.d.ts Allow JSX.Element in tooltip content and html props - Update ITooltipController interface - content and html props now accept string | JSX.Element - Improves flexibility for adding React elements in TypeScript --- src/components/TooltipController/TooltipControllerTypes.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/TooltipController/TooltipControllerTypes.d.ts b/src/components/TooltipController/TooltipControllerTypes.d.ts index a6a5e289..28cdecc9 100644 --- a/src/components/TooltipController/TooltipControllerTypes.d.ts +++ b/src/components/TooltipController/TooltipControllerTypes.d.ts @@ -17,11 +17,11 @@ import type { export interface ITooltipController { className?: string classNameArrow?: string - content?: string + content?: string | JSX.Element /** * @deprecated Use `children` or `render` instead */ - html?: string + html?: string | JSX.Element render?: (render: { content: string | null; activeAnchor: HTMLElement | null }) => ChildrenType place?: PlacesType offset?: number